From 2ee6eebe1c1dfe746b915cd55641e88c6d6bf3fe Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sat, 27 Jan 2007 08:27:33 +0000 Subject: [PATCH] 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 --- .../portal_skins/erp5_core/ERP5Site_getModuleItemList.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml index 7eed591bb4..75c9661caf 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml @@ -85,7 +85,8 @@ def getModuleItemList(user=None, portal_path=None):\n item_list.sort(lambda a, b:cmp(a[0], b[0]))\n return item_list\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 return getModuleItemList(user=user, portal_path=portal_path)\n </string> </value> -- 2.30.9