自定义模块和文本的 Orchard 翻译

Orchard translation of custom modules and texts

我快完成两个 Orchard 项目了,现在我想专注于翻译。

我到处都使用助手 class T("") 就像 T("Some english text").

是否有 Orchard 1.8 兼容模块列出我在管理菜单中的所有翻译条目并让我为其创建新翻译?

或者任何列出翻译并将其写入文件的助手?

有一个模块 Translation Manager(图库中 Vandelay Industries 模块的一部分)可以从源代码中提取字符串并生成 .po 文件。

Docs: Contributing files for third party modules

Contributing files for third party modules

... you can generate po files for it using the Translation Manager module.

From an Orchard command line, type the following command (for the example of the Bing.Maps module):

extract default translation /Extensions:Bing.Maps /Output:\temp

This will create a new Orchard.en-us.po.zip file with the strings for the module. The command looks at the source code for the module and creates entries for T-wrapped strings, manifest strings and everything that should be localizable.