po-not-in-pot (PO101)#
A translation is ignored because its msgid is missing from the module’s .pot.
What it does#
When a module has a template i18n/<module>.pot, reports translations in the
.po files next to it whose msgid (and msgctxt) is not in that template.
Why is this bad?#
Odoo merges every .po file with the module’s .pot before loading it, the
way msgmerge does. Entries that are not in the template are marked
obsolete and skipped, without any message in the log: the translation simply
never shows up. This happens when terms are added to a .po file, or
translated in Weblate, while the .pot was not regenerated.
How to fix#
Regenerate the .pot from Odoo (Settings > Translations > Export, or
odoo-bin --i18n-export) after changing translatable terms, and commit it
with the .po files.
Fix safety#
Unsafe: the entry is copied untranslated to the .pot, with only the
references Odoo can read. Check that the text is still used: there is no fix
when the entry has no such reference left, or when its field is already
labelled by another entry (an old label).