コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
8377 ビュー

I've been told the proper way to customize menu names is to use Translations, even if you only have the base English in your instance.

But how to use Translations to customize OpenERP's original English texts ?

アバター
破棄
最善の回答

Hi,

yes you can do this ,like all other languages .

generate a file en_US.po for your module and place it in i18n .change the terms you want to change.

then update your module .all original words should be changed. for example in module sale ..

#. module: sale
#: code:addons/sale/sale.py:444
#, python-format
msgid "Customer Invoices"
msgstr "Customer Invoices"   < ------- here your translation

#. module: sale
#: model:ir.actions.act_window,name:sale.open_board_sales
#: model:ir.ui.menu,name:sale.menu_dashboard_sales
#: model:process.process,name:sale.process_process_salesprocess0
#: view:res.partner:0
#: view:sale.order:0
#: view:sale.report:0
msgid "Sales"
msgstr "Sales"< ------- here your translation

#. module: sale
#: help:sale.config.settings,module_sale_margin:0
msgid "This adds the 'Margin' on sales order.\n"
"                This gives the profitability by calculating the difference between the Unit Price and Cost Price.\n"
"                This installs the module sale_margin."
msgstr "This adds the 'Margin' on sales order.\n"
"                This gives the profitability by calculating the difference between the Unit Price and Cost Price.\n"
"                This installs the module sale_margin." < ------- here your translation

#. module: sale
#: report:sale.order:0
#: field:sale.order.line,price_unit:0
msgid "Unit Price"
msgstr "Unit Price" < ------- here your translation
アバター
破棄
著作者

This pointed me in the right direction, so I'm accepting it as correct, thanks.

著作者 最善の回答

Based on Borni's answer, I got to this recipe:

  • Go to Settings » Translations » Application Terms » Synchronize Terms
  • Select Language English and click Update

That's it. Now you will find the English strings in the Technical Translation screens and can customize the Translated values at will.

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 15
5332
0
12月 24
1654
5
8月 24
3212
2
2月 24
3191
4
11月 23
3757