Importing translation files into Odoo
The standard method for loading translations is to store PO files in the module’s i18n
subfolder. The translation files are loaded and additional translated strings are added whenever the add-on module is installed or updated.
However, there may be cases where we want to directly import a translation file. In this recipe, we will learn how to load a translation file, either from the web client or from the command line.
Getting ready
We need to have developer mode activated. If it’s not activated already, activate it, as demonstrated in the Activating the Odoo developer tools recipe in Chapter 1, Installing the Odoo Development Environment. We will also need a translation po
file, which we are going import in this tutorial – for example, the myfile.po
file.
How to do it...
To import the translation terms, follow these steps:
- In the web client user interface, from the Settings top menu, select the Translations...