From 3d0a4e0c3dd4c90fac7d539f26e90a5ff683e19b Mon Sep 17 00:00:00 2001 From: Amit Dodiya Date: Thu, 28 Feb 2013 12:33:11 +0530 Subject: [PATCH] [FIX] make the breadcrump string translatable bzr revid: ado@tinyerp.com-20130228070311-zbhx3bcpqo6cgfx0 --- addons/account/account_invoice.py | 8 ++++---- addons/account/i18n/account.pot | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 2a4b410de2f..fc8acc99b22 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -1130,10 +1130,10 @@ class account_invoice(osv.osv): if not ids: return [] types = { - 'out_invoice': 'Invoice ', - 'in_invoice': 'Sup. Invoice ', - 'out_refund': 'Refund ', - 'in_refund': 'Supplier Refund ', + 'out_invoice': _('Invoice '), + 'in_invoice': _('Sup. Invoice '), + 'out_refund': _('Refund '), + 'in_refund': _('Supplier Refund '), } return [(r['id'], (r['number']) or types[r['type']] + (r['name'] or '')) for r in self.read(cr, uid, ids, ['type', 'number', 'name'], context, load='_classic_write')] diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 12661a8ee22..7125cbae281 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -52,6 +52,30 @@ msgstr "" msgid "Residual" msgstr "" +#. module: account +#: code:addons/account/account_invoice.py:1133 +#, python-format +msgid "Invoice " +msgstr "" + +#. module: account +#: code:addons/account/account_invoice.py:1134 +#, python-format +msgid "Sup. Invoice " +msgstr "" + +#. module: account +#: code:addons/account/account_invoice.py:11345 +#, python-format +msgid "Refund " +msgstr "" + +#. module: account +#: code:addons/account/account_invoice.py:1136 +#, python-format +msgid "Supplier Refund " +msgstr "" + #. module: account #: code:addons/account/account_bank_statement.py:368 #, python-format