Odoo. How to translate menu items?

时间:2015-10-30 21:31:21

标签: python openerp

I working with odoo and I need to translate all menu items.

enter image description here

Can you provide an example step by step how I can do this? Thanks in advance!

2 个答案:

答案 0 :(得分:1)

翻译菜单您需要按照以下步骤操作。

<强> 1。设置=&gt;翻译=&gt;加载翻译。

enter image description here

<强> 2。选择正确语言,然后单击加载按钮。

第3。打开用户首选项。

enter image description here

<强> 4。现在从用户首选项更改语言,菜单语言将被更改。

enter image description here

答案 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.