Import translation in Odoo 10

Hello guys ^^
Today’s article will show you how to translate your modules in Odoo 10.

For our tutorial we will work with the module:”hr_expense” that has some few missing translated words and we will explain to you, step by step, how to import the translation into this module.

We will try to translate it in french.
To do so:

1-Activate the developer mode: Setting -> Activate developer mode

developer mode in odoo

2- Install the module “hr_expenses”:

you will notice that some few words are not translated in french.

hr_expenses module

3- Go to addons/hr_expense/i18n/fr.po:

– Open the file “fr.po”, you will notice that some few words are not translated

https://drive.google.com/file/d/0B09HNye3F974dnZwd3FQLTNXcHM/view?usp=sharing

– Save this file

-Add necessary  translation to your file and save it. For our case, we translated the following words:

  • “Expenses to Submit”, “Refused Expenses”, “Expense Reports”

translation odoo 10

3-Import Translation:
Go to : Setting-> Translation-> import/export-> Import translation
Screenshot 2017-04-11 15:20:16

4- This window will appear:
Screenshot 2017-04-11 15:21:14

5- Add your file “fr.po” and click import:
Screenshot 2017-04-11 15:21:55

6- Restart your navigator: 

You will notice that the translation has been successfully added.

translated words

Please find here a video that shows all the steps of importing translation in Odoo 10 described above :

 

Hope you guys like it ^^
Best of luck