Commit 267b3975 authored by Romain Courteaud's avatar Romain Courteaud

Lang is a named parameter.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17644 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4551109a
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <tuple>
<tuple/> <string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -75,7 +78,7 @@ from Products.CMFCore.utils import getToolByName\n ...@@ -75,7 +78,7 @@ from Products.CMFCore.utils import getToolByName\n
translation_service = getToolByName(context, \'Localizer\', None)\n translation_service = getToolByName(context, \'Localizer\', None)\n
if translation_service is not None :\n if translation_service is not None :\n
try:\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 except AttributeError: # This happens in unit testing, because it is not able to find something with get_context()\n
pass\n pass\n
return msg\n return msg\n
......
571 572
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment