O'Reilly logo

Odoo Development Cookbook by Daniel Reis, Alexandre Fayolle, Holger Brunn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Use gettext tools to ease translations

The PO file format is part of the gettext internationalization and localization system commonly used in Unix-like systems. This system includes tools to ease the translation work.

This recipe demonstrates how to use these tools to help translate our addon modules. We want to use it on a custom module, so my_module created in Chapter 3, Creating Odoo Modules is a good candidate. But feel free to replace it with some other custom module you have at hand, replacing the recipe's my_module references as appropriate.

How to do it...

To manage the translation from the command line, assuming that your Odoo installation is at ~/odoo-work/odoo, follow these steps:

  1. Create a compendium of translation terms for the target ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required