Home Blog How To Load A Translation in Odoo
How To Load A Translation in Odoo

How to Load a Translation in Odoo

Language is one of the most important factors in driving business to grow worldwide in today’s world. Every organization needs to have the privilege of providing business to the users/customers of a location in their local language. Go through this blog to get more details about "How to Load a Translation in Odoo". 

So it is very important to keep the system updated in accordance with the needs of customers.

Multilingual support in a system is very profitable for the organization. It provides access of the system to the users globally.

Odoo provides you with the option to manage the Odoo system in different languages, and each user/customer can use Odoo in his/her language.

In this blog, we are going to see how we can set our desired language in Odoo and also "How we can Load a Translation to Reports & Custom Modules in Odoo.

So, let us start..

Step -1 
First, let us see how we can add a new language to the Odoo system.
Click on the ‘Settings’ App & Navigate to the ‘Translations’ > ‘Languages’ Menu.

Add Translation in Odoo Custom Module

Here, you can see the list of languages installed in the system. We can also see the languages which are currently active in the system. By default, the language selected at the time of the creation of a database is activated in the system.

Step -2
Now Navigate to ‘Languages’ > ‘Load A Translation’. Here you can load the desired language to the system. Select a language & click on ‘Load’
.

Add Translation in Odoo Custom Module

This will load the selected language to the system or in simpler words, it’ll activate the selected language to the system.

Add Translation in Odoo Custom Module
Step -3
Now we can set the preferred language for the user in the preferences so that the system is translated to the language selected by the user.

Click on the user profile on the top-right for changing the language for the current user. Here, click on preferences.

Add Translation in Odoo Custom Module
Add Translation in Odoo Custom Module

This will open up a menu for the user where the user can set his/her language preference. In the language select a language from the available languages and click on Save. The page will refresh & change the system language for that user.

Add Translation in Odoo Custom Module

You can also set the user language in the ‘Settings’> ‘Users & Companies’ > ‘Users’.

Select the User, a preference tab will open up. Here you can set the preferred language.

Add Translation in Odoo Custom Module
Step -4
We can also set the direction for the fonts in the system. For example, in arabic language, the text is written from the right-to-left side. This preference can also be set in the language settings.

Add Translation in Odoo Custom Module
Step - 5
After loading the language, navigate to the ‘Languages’ menu & set the direction for the text. By default, it is right-to-left for Arabic language.
Navigate to the user & select the language.

Add Translation in Odoo Custom Module

As you can see the language & text direction are changed as specified.

Step -6 
Now we’ll see how we can add the translation for a Custom field in Odoo.
Activate the developer mode. After the developer mode is activated, you’ll see a new menu visible in the ‘Languages’ Menu.
‘Import/Export’ a translation. Click on ‘Export a Translation’, a wizard will popup.

Add Translation in Odoo Custom Module
Step -7
Select the language in which you want the translation file. For example, in this case, we are translating in ‘German’ language.
Next select the file format, which is ‘PO File’.
The Next step is to select the module for which we want to generate a translation file.
After selecting the module, click on Export.

Add Translation in Odoo Custom Module
Step -8
A new popup will open up with the exported translation file. Click on the translation file, the file will be downloaded in your system.
Open the file in your text editor, you’ll see two main keywords here:
First is the ‘msgid’, and the second is ‘msgstr’. ‘msgid’ shows the original term from the system and the ‘msgstr’ shows the translated term in that language.

Add Translation in Odoo Custom Module

You can change any translation if you want according to your preference.

Add Translation in Odoo Custom Module
Step -8
After that, navigate to your module and paste this file to the ‘i18n’ folder in the module. This folder is for the translation files of the module. Create a new folder named ‘i18n’ in the module if not already present.

After the file is transferred. Restart the server and upgrade the module.

You’ll see that the translation is updated in the system.

You can check the translated terms in the system by Navigating to ‘Languages’ > ‘Translated Terms’.

This will show all the translated records from the system.

Add Translation in Odoo Custom Module

Thus, we can translate and work in the preferred language in our Odoo system by following these simple steps.


 Subscribe our Newsletter for Odoo tips, technical insights, and more!


I hope this blog is helpful to you; if you are facing any problems while doing this do let us know in the comment section. Our team of Odoo Developers happy to help you.

Get In Touch with Us

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Leave a Comment

Your email address will not be published.

Submit
Your comment is under review by our moderation team.