Skip to content

odpm message locale (ODPM_LOCALE)

AI-translated from Russian.

odpm utility messages on the host (errors, setup wizard questions, brief statuses when starting compose) are translated via GNU gettext catalogs in dev_project/i18n/.

The container log (Odoo, PostgreSQL) intentionally stays in English — easier to match with general documentation.

How language is chosen

Priority Source
1 ODPM_LOCALE in the active .env file
2 ODPM_LOCALE in the process environment
3 LC_ALL, LC_MESSAGES, or LANG
4 Operating system locale
5 en_US

One .env is read — project or ~/.odpm/; keys are not merged (.env variables).

Example in the project directory:

ODPM_LOCALE=ru_RU

Full odpm UI translation is available for ru_RU; other locales fall back to English.

Do not confuse with Odoo database language

Field database.language in odpm.json (or deprecated db_lang in user_settings.json) sets the Odoo database language on creation (ru_RU, en_US), not odpm’s own message language. When both exist, the manifest wins.

Updating translations (for odpm developers)

See contributing/i18n.md in the odpm repository.