【问题标题】:tool to create from plain html file a .po file used for translation从纯 html 文件创建用于翻译的 .po 文件的工具
【发布时间】:2012-12-30 21:46:33
【问题描述】:

我正在使用http://i18next.com/ 来翻译托管在 github gh-pages 上的静态网站。

有什么工具可以让我首先从 index.html 文件中提取并创建一个 index.po 文件,翻译者可以在其中本地化/国际化页面,然后使用像 http://pypi.python.org/pypi/pojson 这样的工具来转换这个 po文件到 json 以供 i18next 使用?

【问题讨论】:

    标签: json localization po


    【解决方案1】:

    您可以使用po4a 从 html 和许多其他格式创建 po 文件。

    【讨论】:

      【解决方案2】:

      POEdit 可能会解决问题。在 PHP 中,Gettext 扩展 (http://es.php.net/gettext) 会有所帮助。另外,我发现这个链接将详细说明创建 po 文件的过程:http://www.wdmac.com/how-to-create-a-po-language-translation

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-08-17
        • 2017-11-02
        • 1970-01-01
        • 2018-12-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多