Menu

Why a new Odoo record still shows English in a French database
📰

Why a new Odoo record still shows English in a French database

DEV Community: postgres·Mehedi Hassan Shifat·5 days ago
#O3nacCBA
#devtopostgresql#devto#dev#odoo#french
Reading 0:00
15s threshold

Odoo stores translatable fields as JSON, one key per language: {"en_US": "Partner", "fr_FR": "Partenaire"} . If the French key is missing, Odoo shows the English text. That's the first kind of gap.

Disclosure: I make a paid Odoo module that scans for these (link at the bottom).

The second kind surprised me. Create a record from a French session and Odoo stores the text as both English and French values, so the French value exists and is just the English word. The record has a "translation" and nobody ever translated it. Looking for missing keys can't find it, so you also have to compare the two values.

A third detail is about .po files: entries marked fuzzy are loaded and shown to users, so they aren't gaps, only worth a review.

I made a module that scans every translatable field per installed language (counting missing and same-as-English), lists the module terms that a .po leaves empty, and opens the exact records in that language so you can fix them.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.