From 72e123e8db0d7c4e50489742b5b584138baacdc3 Mon Sep 17 00:00:00 2001 From: OmarAbosamaha Date: Mon, 18 Dec 2023 23:40:26 +0200 Subject: [PATCH] [FIX] l10n_ar: add missing translations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: spanish_ar translation is missing for some menu items and template names in the accounting app Steps to reproduce: 1- install l10n_ar 2- switch language to Spanish(AR) 3- Open accounting app 4- check menu items Solution: Issue was that the translation file was called es.po and for spanish (AR) language it should fallback to es_419 As per the translation code found here in in 'translate.py' in odoo tools https://github.com/odoo/odoo/blob/20a3998c3073af8a5d95f8303283107363caed85/odoo/tools/translate.py#L1565-L1574 opw-3601556 closes odoo/odoo#146742 Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) --- addons/l10n_ar/i18n/es_419.po | 21 +++++++++++++++++++++ addons/l10n_ar/i18n/l10n_ar.pot | 21 +++++++++++++++++++++ addons/l10n_ar/models/template_ar_base.py | 4 ++-- addons/l10n_ar/models/template_ar_ex.py | 4 ++-- addons/l10n_ar/models/template_ar_ri.py | 4 ++-- 5 files changed, 48 insertions(+), 6 deletions(-) diff --git a/addons/l10n_ar/i18n/es_419.po b/addons/l10n_ar/i18n/es_419.po index ef43ae97fa1..20a1a2e95e1 100644 --- a/addons/l10n_ar/i18n/es_419.po +++ b/addons/l10n_ar/i18n/es_419.po @@ -334,6 +334,20 @@ msgstr "Inicio actividades" msgid "Argentina: This code will be used on electronic invoice" msgstr "Este código será utilizado en facturación electrónica" +#. module: l10n_ar +#. odoo-python +#: code:addons/l10n_ar/models/template_ar_ex.py:0 +#, python-format +msgid "Argentine Generic Chart of Accounts for Exempt Individuals" +msgstr "Plan Contable Genérico Argentino para Personas Físicas Exentas" + +#. module: l10n_ar +#. odoo-python +#: code:addons/l10n_ar/models/template_ar_ri.py:0 +#, python-format +msgid "Argentine Generic Chart of Accounts for Registered Accountants" +msgstr "Plan Contable Genérico Argentino para Contadores Públicos" + #. module: l10n_ar #: model_terms:ir.ui.view,arch_db:l10n_ar.view_document_type_filter msgid "Argentinean Documents" @@ -1194,6 +1208,13 @@ msgstr "Posición fiscal" msgid "Formatted VAT" msgstr "CUIT Formateado" +#. module: l10n_ar +#. odoo-python +#: code:addons/l10n_ar/models/template_ar_base.py:0 +#, python-format +msgid "Generic Chart of Accounts Argentina Single Taxpayer / Basis" +msgstr "Plan General Contable Argentina Monotributista / Base" + #. module: l10n_ar #: model:ir.model.fields,help:l10n_ar.field_res_country__l10n_ar_legal_entity_vat msgid "" diff --git a/addons/l10n_ar/i18n/l10n_ar.pot b/addons/l10n_ar/i18n/l10n_ar.pot index 706d5907f6a..428248db014 100644 --- a/addons/l10n_ar/i18n/l10n_ar.pot +++ b/addons/l10n_ar/i18n/l10n_ar.pot @@ -330,6 +330,20 @@ msgstr "" msgid "Argentina: This code will be used on electronic invoice" msgstr "" +#. module: l10n_ar +#. odoo-python +#: code:addons/l10n_ar/models/template_ar_ex.py:0 +#, python-format +msgid "Argentine Generic Chart of Accounts for Exempt Individuals" +msgstr "" + +#. module: l10n_ar +#. odoo-python +#: code:addons/l10n_ar/models/template_ar_ri.py:0 +#, python-format +msgid "Argentine Generic Chart of Accounts for Registered Accountants" +msgstr "" + #. module: l10n_ar #: model_terms:ir.ui.view,arch_db:l10n_ar.view_document_type_filter msgid "Argentinean Documents" @@ -1176,6 +1190,13 @@ msgstr "" msgid "Formatted VAT" msgstr "" +#. module: l10n_ar +#. odoo-python +#: code:addons/l10n_ar/models/template_ar_base.py:0 +#, python-format +msgid "Generic Chart of Accounts Argentina Single Taxpayer / Basis" +msgstr "" + #. module: l10n_ar #: model:ir.model.fields,help:l10n_ar.field_res_country__l10n_ar_legal_entity_vat msgid "" diff --git a/addons/l10n_ar/models/template_ar_base.py b/addons/l10n_ar/models/template_ar_base.py index b6a64d3d746..59bb538bfe2 100644 --- a/addons/l10n_ar/models/template_ar_base.py +++ b/addons/l10n_ar/models/template_ar_base.py @@ -1,5 +1,5 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo import models +from odoo import models, _ from odoo.addons.account.models.chart_template import template @@ -15,7 +15,7 @@ class AccountChartTemplate(models.AbstractModel): 'property_account_income_categ_id': 'base_venta_de_mercaderia', 'property_tax_payable_account_id': 'base_default_vat', 'property_tax_receivable_account_id': 'base_default_vat', - 'name': 'Generic Chart of Accounts Argentina Single Taxpayer / Basis', + 'name': _('Generic Chart of Accounts Argentina Single Taxpayer / Basis'), 'code_digits': '12', } diff --git a/addons/l10n_ar/models/template_ar_ex.py b/addons/l10n_ar/models/template_ar_ex.py index 3256b1a7b0d..5edda899cb7 100644 --- a/addons/l10n_ar/models/template_ar_ex.py +++ b/addons/l10n_ar/models/template_ar_ex.py @@ -1,5 +1,5 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo import models +from odoo import models, _ from odoo.addons.account.models.chart_template import template @@ -9,7 +9,7 @@ class AccountChartTemplate(models.AbstractModel): @template('ar_ex') def _get_ar_ex_template_data(self): return { - 'name': 'Argentine Generic Chart of Accounts for Exempt Individuals', + 'name': _('Argentine Generic Chart of Accounts for Exempt Individuals'), 'parent': 'ar_base', 'code_digits': '12', } diff --git a/addons/l10n_ar/models/template_ar_ri.py b/addons/l10n_ar/models/template_ar_ri.py index 9c97963d54f..cd47beabf4c 100644 --- a/addons/l10n_ar/models/template_ar_ri.py +++ b/addons/l10n_ar/models/template_ar_ri.py @@ -1,5 +1,5 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo import models +from odoo import models, _ from odoo.addons.account.models.chart_template import template @@ -9,7 +9,7 @@ class AccountChartTemplate(models.AbstractModel): @template('ar_ri') def _get_ar_ri_template_data(self): return { - 'name': 'Argentine Generic Chart of Accounts for Registered Accountants', + 'name': _('Argentine Generic Chart of Accounts for Registered Accountants'), 'parent': 'ar_ex', 'code_digits': '12', 'property_tax_payable_account_id': 'ri_iva_saldo_a_pagar',