From 267b3975c494654031c1d9077a32c30290fbdbc0 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Fri, 16 Nov 2007 09:47:50 +0000 Subject: [PATCH] Lang is a named parameter. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17644 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_core/Base_translateString.xml | 9 ++++++--- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_translateString.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_translateString.xml index 03f6bfd9a0..db4d14edbc 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_translateString.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_translateString.xml @@ -3,8 +3,11 @@ <record id="1" aka="AAAAAAAAAAE="> <pickle> <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> </tuple> </pickle> <pickle> @@ -75,7 +78,7 @@ from Products.CMFCore.utils import getToolByName\n translation_service = getToolByName(context, \'Localizer\', None)\n if translation_service is not None :\n try:\n - return translation_service.translate(catalog, msg, lang, **kw).encode(encoding)\n + return translation_service.translate(catalog, msg, lang=lang, **kw).encode(encoding)\n except AttributeError: # This happens in unit testing, because it is not able to find something with get_context()\n pass\n return msg\n diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 8f7277e735..23c5f49dce 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -571 \ No newline at end of file +572 \ No newline at end of file -- 2.30.9