Breaking News
Loading...
Monday, 25 April 2016

Adding a new language in ODOO

4/25/2016 12:23:00 pm
Following are the steps for adding a new language in ODOO(OpenERP):

1. Login to your database as Administrator user and go to 'Settings->Languages->Load a Translation'. Select a language in the pop up window(wizard). You can also select the 'Overwrite Existing Terms' and 'Website to translate' in the wizard. Then click on Load button for loading the new language.


Once the language is created you will get the following confirmation message.


You can also see the list of languages installed in your ODOO databse in 'Settings->Translations->Languages'.

2. After installing the language translations for all the labels(terms) in base modules will be created in the database automatically. But for your customized modules to get translated we need to setup the translation for all the terms(field labels, button names, menu names etc) manually. For this go to 'Settings->Translations->Import / Export->Export Translation'. In the wizard which opens on clicking the above menu, select the following values:
    a. Language
    b. File format: Select 'PO File'.
    c. Modules To Export: Select your customized modules here. For example I am selecting the Sales         Management module. In your case it might be something like Sales Management Customization         or Purchase Management Customization etc.
Then click on 'Export' button.


Once the export translation is completed you will get the following window from which you can download the PO file for your selected language.



3. Open the downloaded PO file and add the translations for each labels in English. In the file add value to 'msgstr' which should be the translation of the value in 'msgid' to your new language.









4. After making the changes in the PO file, copy the file to 'i18n' folder of your module in addons. If there is no folder named i18n create the folder in your module and copy the PO file in it.























5. Now restart the server and upgrade your module.
6. Then select the language in 'Preferences' in your user and it will load your database in  new language.





























The translated view will look like the following:






















For any doubts, suggestions or problems you can comment below or contact me via email.

Thanks,

Gopan

2 comments:

 
Toggle Footer