我使用变色龙页面模板作为我的模板语言,我想给我的翻译一个提示。 (在这种情况下,因为根据上下文,“你”这个词的翻译方式会有很大不同。)
我无法在documentation中找到适合它的技术。
我该怎么做?它甚至可能吗?
我可以滥用i18n:target但我宁愿不这样做。
.po文件的结果如下所示:
我更喜欢一种产生类似内容的解决方案,我认为这是向翻译人员提供提示的标准gettext方式。
#. i18n: Translate this very formally.
msgid "you"
msgstr ""
答案 0 :(得分:0)
我发现了一个非常丑陋的解决方案,这取决于你的译员有点警觉。
<tal:block i18n:translate="">
<tal:block
i18n:name="This is not a dynamic element, this is a hint for translators: translate this very formally"
>you</tal:block>
</tal:block>
这将最终出现在.po文件中,如下所示:
msgid ""
"${This is not a dynamic element, this is a hint for translators: translate this very formally}you"
msgstr ""