Community mailing list archives

community@mail.odoo.com

Re: override en_US terms

by
Camptocamp France SAS, Alexandre Fayolle - Camptocamp
- 03/02/2016 04:39:21
On 02/03/2016 08:09, Quentin THEURET wrote:
> Le 01/03/2016 14:52, Alexandre Fayolle a écrit :
>> On 01/03/2016 14:47, Quentin THEURET wrote:
>> > Le 01/03/2016 10:22, Daniel Reis a écrit :
>> >> > What is the current best practise to override en_US translations in Odoo?
>> >> I would like to put this question from a more generic point of view, and
>> >> not specifically on the English terms:
>> >> How would be the best way to "override" standard translation, to fit in
>> >> customer specific terms?
>> >>
>> > Maybe a solution is to create a new language that inherits from en_US
>> > (or es_ES for standard spanish) to override standard terms.
>> > Then deactivate the en_US language and put the new one as default.
>>
>> Could you consider using the "C" locale as reference for a future Odoo
>> version? This would solve all these issues with en_US...
>>
> Sorry, but I don't understand in what the using of the "C" locale as 
> reference will change something on the overriding of standard terms. The 
> source string of the ir.translation will be always the English-based 
> term defined in Odoo source code.
> Maybe I missed something, so please explain me your thoughts.

Hello Quentin,

I think using the "C" locale as reference would allow overriding the
en_US translation possible using the same process as the one used to
override the translations of other languages, and fix for instance
https://github.com/odoo/odoo/issues/4246

The current situation if I understand correctly is that if you change
the en_US translation, you change the source string for all
translations, which needs special casing. OTOH, if the reference string
is the "C" locale, changing the en_US translation is exactly the same as
changing the fr_BE translation. I think the whole code would be simpler
and with fewer corner case issues.


-- 
Alexandre Fayolle
Chef de Projet
Tel : +33 4 58 48 20 30

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com