Translating texts through the web client user interface
The simplest way to translate is to use the translation feature provided by the web client. These translation strings are stored in the database and can later be exported to a .po
file, either to be included in an addon module or just to later be imported back manually.
Text fields can have translatable content, meaning that their value will depend on the current user's language. We will also see how to set the language-dependent values on these fields.
Getting ready
We will need to have the Developer Mode
activated. If it's not, activate it as pointed out in Activating the Odoo developer tools recipe in Chapter 1, Installing the Odoo Development Environment.
How to do it...
We will demonstrate how to use translate terms through the web client using the User Groups
feature as an example:
- Navigate to the screen to translate. Select the
Settings
top menu and then openUsers
&
Companies
to open the corresponding view.
- On the top menu bar...