pot-outdated (PO106)#

A module’s translation template differs from what its source exports.

What it does#

Builds the template of a module that has an i18n/<module>.pot, as odl pot does, and reports the .pot when it differs: terms the source has and the template lacks, terms the source no longer has, or other references and comments. It is odl pot --check as a rule, for the editor and odl check.

The labels a module’s models inherit come from its dependencies: give addons-path with them, Odoo’s included. When a dependency is not found, only terms of the module’s code and data files that the template lacks are reported (a new _() message or view label), since the labels of its models may be wrong, and there is no fix.

A module without a .pot is left alone; odl pot creates one.

Why is this bad?#

Translators work from the template. A term missing from it stays untranslated; one the source no longer has is translated in vain, and PO101 reports it in the .po files.

How to fix#

Run odl pot (or the fix) to write the template, and odl pot --merge to bring the .po files in line with it.