Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

Using Translations to customize the original English texts

By
Daniel Reis
on 9/11/13, 1:16 PM 1,984 views

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 ?

3

Borni DHIFI

--Borni DHIFI--
5102
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 10/3/13, 7:01 PM

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.

Daniel Reis
on 10/4/13, 6:00 AM
1

Daniel Reis

--Daniel Reis--
3436
| 6 7 9
Lisbon, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt


Daniel Reis
On 10/4/13, 5:58 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/11/13, 1:16 PM
Seen: 1984 times
Last updated: 3/16/15, 8:10 AM