1

我没有编码经验,但我需要将 .po 文件转换为 .html 文件。我正在学习如何使用这个翻译工具包。

我在这里使用翻译工具包:http: //docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/html2po.html

设法安装python和东西。我已经到了下面,不知道如何继续。

文件夹 xh 具有 example.po(具有相关的 msgids 和 msgstr)以及 example.html(空白)

C:\Users\bob>po2html -i C:\Users\bob\Desktop\xh -o C:\Users\bob\Desktop\xh
processing 1 files...
po2html: WARNING: Error processing: input C:\Users\Oh\Desktop\xh\example.po, output C:\Users\Oh\Desktop\xh\example.html, template None: must have template file for HTML files
[###########################################] 100%

如何创建这个 html 模板以及它的外观(我唯一知道的是您可以在记事本中创建一个 HTML 文件,但我不确定要在其中放入什么,因此 example.html 是空白 atm)

4

0 回答 0