diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAvailableGapList.py b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAvailableGapList.py index 0fbd418719dfe54189f85ea7f8fba2aae725262e..eb140990e2f606693f06e7dc2e1db6953f73c806 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAvailableGapList.py +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAvailableGapList.py @@ -7,7 +7,7 @@ results = [] countries = context.portal_categories.gap.objectValues() for country in countries : for gap in country.objectValues() : - title = gap.getParentValue().getTitle() + '/'+ gap.getTitle() + title = gap.getParentValue().getTranslatedTitle() + '/'+ gap.getTranslatedTitle() path = gap.getRelativeUrl() if not include_gap_in_path : path = path.replace('gap/', '') diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_hashGapItemList.py b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_hashGapItemList.py index 729440fe1c25516ad5774fb06922815fc4c4e339..0b118a37a2277dcdfcb619d871a580060e3d2cdc 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_hashGapItemList.py +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_hashGapItemList.py @@ -1,4 +1,5 @@ -Base_translateString = context.Base_translateString +portal = context.getPortalObject() +Base_translateString = portal.Base_translateString split_depth = 2 def getSubFieldDict(): @@ -34,8 +35,9 @@ def getSubFieldDict(): return sub_field_dict from Products.ERP5Type.Cache import CachingMethod - getSubFieldDictCache = CachingMethod(getSubFieldDictCache, - id='Account_getSubFieldDict') + getSubFieldDictCache = CachingMethod( + getSubFieldDictCache, + id='Account_getSubFieldDict.%s' % portal.Localizer.get_selected_language()) # Those cached dictionnaries are later modified, we just reset the 'value' # key to return clean dictionnaries. sub_field_dict = getSubFieldDictCache()