I working with odoo and I need to translate all menu items.
Can you provide an example step by step how I can do this? Thanks in advance!
答案 0 :(得分:1)
翻译菜单您需要按照以下步骤操作。
<强> 1。设置=&gt;翻译=&gt;加载翻译。
<强> 2。选择正确语言,然后单击加载按钮。
第3。打开用户首选项。
<强> 4。现在从用户首选项更改语言,菜单语言将被更改。
答案 1 :(得分:0)
2 projects to become familiar with are gettext() (in the standard lib https://docs.python.org/3.5/library/gettext.html#module-gettext) and the Babel project. http://babel.pocoo.org.
There are a few ways to translate these strings: The process is like this for most websites. You will need to modify the templates to use substitution strings for the internationalization process so your link for "Reporting" becomes {links['reporting']}. After that you will need to have localized mappings of strings from reference_language->some_other_language.
Check out this video from pycon for a nicer introduction. https://www.youtube.com/watch?v=oAHMmy7dqUU
FYI: There are services to do the translation for you if you are unsure of the translation.