From 1423111333ab33376057ea8ebd3d767ec3b193a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Mon, 6 Mar 2006 08:39:18 +0000 Subject: [PATCH] use mapping to translate CashCurrency Title and do not hardcoded french git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5992 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Banking/Document/CashCurrency.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product/ERP5Banking/Document/CashCurrency.py b/product/ERP5Banking/Document/CashCurrency.py index 664443db1c..022e042a76 100755 --- a/product/ERP5Banking/Document/CashCurrency.py +++ b/product/ERP5Banking/Document/CashCurrency.py @@ -71,14 +71,13 @@ class CashCurrency(Resource): The title will depend on the Portal Type and the value, for example : Piece de 500 """ - title = self.portal_types[self.getPortalType()].title + title = self.getTranslatedPortalType() price = self.getBasePrice() if price is None: price = 'Not Defined' else: price = '%i' % int(price) - title = '%s de %s' % (title, price) - return title + return self.Base_translateString('${title} of ${value}', mapping = {'title' : str(title), 'value' : str(price)}) security.declareProtected(Permissions.ModifyPortalContent, '_setVariationList') def _setVariationList(self,value): -- 2.30.9