INTRODUCTION
Language translation in Odoo is quite helpful to translate text strings from one language to another. The Odoo language translation allows translating the text to your desired language without customizing the module. Further, Odoo can use different languages for different users and translate website pages into multiple languages. In this article, I will explain how to translate the language for a module in Odoo.
STEPS TO FOLLOW FOR A LANGUAGE TRANSLATION IN ODOO
1. Login and enable the Debug mode of your Odoo Instance. And move to ‘Settings> Translation’ and search for the language you want to add.

2. Now, press the ‘Activate and Transalate’ button. It will install that particular language in Odoo.

3. In the ‘Add Language’ widget, choose the language you want to add to your Odoo and click on the ‘Add’ button. It will install the language on your Odoo. The loading process might take some time, so wait for the time being.

4. After language installation, you will see a success popup with the button to ‘Close or Switch Laguage.’

EXPORTING A PO File
5. Now, you need to add a PO file for this language. PO file contains the actual translation of the module, and each language has its PO file, with the name as country code and the extension as .po. To create a PO file for a particular language (French in our case), follow the below steps.
6. Go to ‘Settings > Import/Export > Export Translation.’

7. In the ‘Export Translation’ wizard, select the Language for which you want to create the PO file, select the File Format as ‘PO File,’ and select the applications you want to translate (Apps To Export). Once done, click on the ‘Export’ button.

8. After that, a wizard will open, and there will be a generated download link of the PO file, which you can download. Click on the link and download the PO file.

9. Copy the downloaded file (fr.po) and paste it into the folder i18n (if not present, create it) inside your module.
10. Open the PO file, and you will find two keywords, ‘msgid and msgstr.’ The msgid contains the actual text, and the msgstr holds the text you want to display for the translation.

11. Now, the new language is ready. When a user chooses the french language, they can see the translated text. Similarly, you can translate the text, label, words, strings, etc. in your required language.
IMPORTING A PO FILE
12. To Import, go to ‘Settings > Import/Export > Import Translation.’

13. In the ‘Import Translation’ wizard, enter the Language name, Code, upload the PO file, and enable ‘Override Existing Terms.’ You can also edit, delete, and download the PO file. Once done, click on the ‘Import’ button.

SEEING THE TRANSLATED TEXT
14. If you want to see the translated text in the Odoo fields, you can click on the translation icon displayed in the field. I am considering an example of Odoo products.

15. You can see the translated product name and view all other installed translations in the popup.

That is it.!!!
NEED HELP?
Hope you find the guide helpful! Please feel free to share your feedback in the comments below.
If you still have any issues/queries regarding the module, please raise a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/.
Also, please explore our Odoo development services & an extensive range of quality Odoo Apps.
For any doubt, contact us at [email protected].
Thanks for paying attention!!
Current Product Version - 1.1
Supported Framework Version - Odoo 16, 15, 14
13 comments
Thanks for your valuable feedback! Stay tuned for more…
Regards
Anisha Bahukhandi
Thanks for answering this quickly, I am really grateful. I understood clearly what you tried to tell me there but my concern is that I don’t want to manually update all the content on my website. When you change the language in an Odoo website(assuming that you are logged in as admin) and when you press the translate button present on top, all the texts present in website get highlighted either by green or yellow. I want to know why does odoo not translate the whole website but just the header and the footer and also is there any way through which I can make the whole text to get translated all by itself.
Actually, by default in Odoo, only those fields will be translated from the website when you click on the translate button present on the top right corner in admin account that has the translations added (eg menus name is translatable). Also, the text that is in the HTML form will be translated. The content that can be translated will be displayed in the yellow color. There is no option to add the translation for other content. For static content, you can add a P.O file as I mentioned in the tutorial above.
Keeps tuning my posts.
You can add the text on your website simply by clicking on the translation icon on any field and then add the translated text for a particular language.
Go through the below screenshots it will help.
https://prnt.sc/mh9oxe
https://prnt.sc/mh9pak
https://prnt.sc/mh9pt5