Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试本地化 Django 应用程序,但我找不到任何方法来区分动词和名词的翻译。
假设我有一个单词“order”,在一种情况下用作动词,在另一种情况下用作名词。在 .po 文件中,它显示为:
#: .\core\order.py:747 msgid "Order" msgstr ""
有什么提示吗?
上下文标记应该完全符合您的要求:https ://docs.djangoproject.com/en/dev/topics/i18n/translation/#contextual-markers