Commit 2ee6eebe authored by Jean-Paul Smets's avatar Jean-Paul Smets

Add support for multiple languages for the same user

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12410 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4327a667
...@@ -85,7 +85,8 @@ def getModuleItemList(user=None, portal_path=None):\n ...@@ -85,7 +85,8 @@ def getModuleItemList(user=None, portal_path=None):\n
item_list.sort(lambda a, b:cmp(a[0], b[0]))\n item_list.sort(lambda a, b:cmp(a[0], b[0]))\n
return item_list\n return item_list\n
\n \n
getModuleItemList = CachingMethod(getModuleItemList, id=\'ERP5Site_getModuleItemList\')\n getModuleItemList = CachingMethod(getModuleItemList, \n
id=(\'ERP5Site_getModuleItemList\', context.Localizer.get_selected_language()))\n
portal_path = context.getPortalObject().getPhysicalPath()\n portal_path = context.getPortalObject().getPhysicalPath()\n
return getModuleItemList(user=user, portal_path=portal_path)\n return getModuleItemList(user=user, portal_path=portal_path)\n
</string> </value> </string> </value>
......
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