po-translation-missing (PO105)#

A module with translatable terms lacks the translation of a configured language.

What it does#

For each language the configuration lists, reports a module that has translatable terms but no i18n/<language>.po, and a .po file that leaves terms of the module’s .pot untranslated (missing, or with an empty msgstr). Does nothing without configured languages:

[tool.odoo-lint.rules.po-translation-missing]
languages = ["nl", "es"]

A language with a region (nl_BE) is satisfied by nl_BE.po or by the base nl.po, which Odoo loads first; a language without one (nl) by nl.po or by any nl_*.po.

Without a .pot, a module counts as having terms when its Python code declares fields or calls _()/_lt(), when the XML files its manifest loads have views, menus, actions or templates, or when its assets call _t().

Why is this bad?#

Users of an untranslated language see the module’s labels, menus and messages in English. A module without a .po for the language shows nothing wrong until a client opens it.

How to fix#

Export the terms (Settings > Translations > Export, or odoo-bin --i18n-export), translate them and commit i18n/<language>.po with the module’s .pot.