Community mailing list archives

community@mail.odoo.com

Re: Translations of l18n_extra/*.po on transifex

by
Vauxoo S.A. de C.V., Moisés Augusto López Calderón
- 11/28/2016 11:56:50
Martin

I have a special case for inherit

Module: "account_custom"

File: account_custom/models/account.py
class Account(model.Models):
   _inherit = 'account.account'
   new_field = fields.Char()

File: account_custom/data/account.xml
<record id="account.xml_id"...
   <field name="new_field">value</field>

If I export the translation of "account_custom" module the values of new field where we are affecting a xml_id of other modules are not detected.
I need export the translation of "account" and extract manually these translation terms to set into account_custom/i18n/account_custom.pot

But If is a official module with this case transifex will overwrite account_custom/i18n/account_custom.pot without "account" inherited terms.

What is the best way to manage this case?
Could we use "i18n_extra" here too?


2016-10-13 9:07 GMT-05:00 Martin Trigaux <mat@odoo.com>:

Hello Jos,

The i18n_extra terms are put there NOT to be picked by Transifex, we don't want to have Chinese translations of the Belgian chart of accounts.
We explained the process on how to translate multilangue chart of account here:
https://github.com/odoo/odoo/wiki/Translations#how-to-translate-my-chart-of-account-into-multiple-languages
Long story short: you translate the remaining terms using your favourite tool and submit the changes via Github.
If you are not familiar with Github, you can also send me an email with the translated terms and I will do it ;-)

Martin

On 13/10/16 15:52, Jos De Graeve wrote:
Hello,

Is it possible to translate terms defined in l18n_extra folders ?

I was trying to correct the translation of, for example "54 - TVA sur opérations des grilles [01], [02], [03]"

This is a currently untranslated string in "odoo-enterprise/l10n_be_reports/i18n_extra/nl.po:420"

I assume that, due to the fact that these terms are in "l18n_extra" instead of in "i18n", they have not been picked up for translation on transifex.

How can we have these terms translated properly ?

Tnx,
Jos De Graeve - Apertoso business ICT


Guido Gezellelaan 16 - B-9800 Deinze - Belgium
 
Direct: +32 9 381 64 51
General:+32 9 381 64 50
Mobile: +32 475 54 68 80
mail/im/skype: Jos.DeGraeve@apertoso.be - apertoso

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


-- 
Martin Trigaux
Odoo
https://odoo.com
https://github.com/mart-e

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Moisés López Calderón
Vauxoo - OpenERP's Gold Partner
Mobile: (+521) 477-752-22-30
Office: (+52) 477-773-33-46
web: http://www.vauxoo.com
twitter: @vauxoo
           @moylop260