Commit 79f99a14 authored by Jérome Perrin's avatar Jérome Perrin

display translated title of CRM resources

parent a8b2267c
......@@ -91,11 +91,11 @@
<string>Title</string>
</tuple>
<tuple>
<string>portal_type</string>
<string>translated_portal_type</string>
<string>Type</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>resource_translated_title</string>
<string>Resource</string>
</tuple>
<tuple>
......
......@@ -68,7 +68,7 @@ def getResourceItemList(portal_type):\n
\'use_uid\': portal.portal_categories.getCategoryUid(portal.portal_preferences.getPreference(preference_id), base_category=\'use\'),\n
\'validation_state\': \'validated\',\n
\'sort_on\': \'title\'}\n
return [(\'\', \'\')] + [(result.getTitle(), result.getRelativeUrl()) for result in portal.portal_catalog(**sql_kw)]\n
return [(\'\', \'\')] + [(result.getTranslatedTitle(), result.getRelativeUrl()) for result in portal.portal_catalog(**sql_kw)]\n
\n
getResourceItemList = CachingMethod(getResourceItemList, \n
id=(script.id, portal_type, context.Localizer.get_selected_language()), \n
......
652
\ No newline at end of file
653
\ 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