Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I've installed Odoo on a CentOs server, and it's working very fine.
But when I try to print a quote in french (client's language set to french, etc.), most of the terms are well translated but some terms are not, such as "Total Without Taxes" or "Payment Terms".
I've tried to add a translation or these terms in the configuration (Settings / translation) and synchronized the translation, but it' won't have any effect.
Any idea how to do it ?
PS : I'm aware that the french translation is not finished yet (https://translations.launchpad.net/openobject-addons/8.0/+lang/fr/+index?batch=75&memo=75&start=75). I'm OK to translate myself.
Translation of terms is very easy. I'll give the example with "Total Without Taxes"
1. Go to settings > Application terms > Translated terms
2. Search for the term you're looking for, in this example "Total Without Taxes"
3. You'll now see a record (or multiple) with the original English value and the translation (if there is one).
You can now edit these or add new ones as you wish. In my example I made a translation for English, Flemish and Dutch.
4. When you've translated all the things you want or need you need to synchronize the translations. Do this by clicking on "Synchronize Terms".
Select the language you made a translation for and synchronize. This means if you've translated for Dutch and Flemish you'll need to synchronize the language Dutch AND the language Flemish.
Refresh your page and have a look, it is now translated. (or for example with a new PDF)
Note: If you wish to print a PDF in another language for a customer you will have to place the customer his language on the language you want the PDF to be printed in! This setting is responsible for choosing which language the PDF will have.
While I believe this answers your question I'll also write out the steps about how to translate fields in views.
I'll give the example of the field "Salesperson" when you make a new example.
1. Go to about Odoo and activate the developer mode
2. Navigate to the view where you want to make another translation or term. Then hoover over the fieldlabel where you want to change the name for. For example:
2. Now you know the model (res.partner) and the field (user_id) you can translate it. Go to settings > Application Terms > Translated terms.
3. Search for the term you're looking for, in this example "Salesperson" or alternatively just make a new one.
The first field "Source" is the original text of the label, the second field "Translation value" is the value that you want it to show in your language, field three (translated field) is the name of the model with the name of the field. As you can see in the hoover over the label you have the model res.partner and the field user_id so this would become res.partner,user_id. The fourth field is the language you want to translate for and the fifth field is the kind of text you want to translate. In this example this is a type "field".
So you'll get something like this:
4. Synchronize the translation for the languages you've translated and refresh the page. You're done now.
5. The result:
I'm sorry but it does not work, and it is precisely why I wrote this in my first message ("I've tried to add a translation or these terms in the configuration (Settings / translation) and synchronized the translation, but it' won't have any effect.")
I did search for "Total without taxes" and translated it : http://imageshack.com/a/img673/8076/rkCU0b.png
Then synchronized both french and english languages.
Then I still have the untranslated term : http://imageshack.com/a/img674/8739/48V3bF.png
I encountered the same issue described by @Naoli and others. I want to refer you all to the following github issues:
1. As you have already messed up the database you will have to remove the language you are experiencing problems with, either by deleting it from the web language settings panel or by flushing all the associated terms from the ir_translation table in the database (which is easier).
2. Now reload the fresh language files from the web panel.
3. Now apply the following patch to your odoo installatino https://github.com/odoo-dev/odoo/commit/9d3babf9b0b4af0bdd47eaf52de0f21fc0ae9327.patch, you can do it either manually or by using git apply.
4. Restart odoo-server and refresh/relogin into the odoo web
5. Congrats your odoo language files are fixed and you should be good to go to translate the terms you like the way you see fit without messing them up.
I hope this patch becomes part of the master branch soon, which will spare you the trouble of having to patch the install by hand, but even then I believe you will not be able to avoid flushing your terms table. I hope this helps, and I would appreciate few upvotes to be able to post links in the future.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/4/14, 10:34 AM|
|Seen: 3929 times|
|Last updated: 3/16/15, 8:10 AM|