Commit 11555d67 authored by Ivan Tyagov's avatar Ivan Tyagov

Translate all possible report,add, exchange action's titles at the script...

Translate all possible report,add, exchange action's titles at the script level once as this script results is cached in respect to user's preferred language.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23236 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4f59d0b
......@@ -134,7 +134,7 @@
form_id=form_id,\n
selection_name=selection_name,\n
select_action=action))\n
module_add_list.append((content_type, url))\n
module_add_list.append((N_(content_type), url))\n
for template in module.getDocumentTemplateList():\n
action = \'template %s\' % template.getRelativeUrl()\n
url = renderCustomLink(\'%s/Base_doAction\' % module_url,\n
......@@ -151,7 +151,7 @@
form_id=form_id,\n
selection_name=selection_name,\n
select_action=action))\n
module_add_list.append((add_action[\'name\'], url))\n
module_add_list.append((N_(add_action[\'name\']), url))\n
if module_add_list:\n
add_list.append((translated_title, module_add_list))\n
\n
......@@ -163,7 +163,7 @@
form_id=form_id,\n
selection_name=selection_name,\n
dialog_category=\'object_search\')).strip()\n
module_search_list.append((search_action[\'name\'], url))\n
module_search_list.append((N_(search_action[\'name\']), url))\n
if module_search_list:\n
search_list.append((translated_title, module_search_list))\n
\n
......@@ -175,7 +175,7 @@
form_id=form_id,\n
selection_name=selection_name,\n
dialog_category=\'object_exchange\')).strip()\n
module_exchange_list.append((exchange_action[\'name\'], url))\n
module_exchange_list.append((N_(exchange_action[\'name\']), url))\n
if module_exchange_list:\n
exchange_list.append((translated_title, module_exchange_list))\n
\n
......@@ -187,7 +187,7 @@
form_id=form_id,\n
selection_name=selection_name,\n
dialog_category=\'object_report\')).strip()\n
module_report_list.append((report_action[\'name\'], url))\n
module_report_list.append((N_(report_action[\'name\']), url))\n
if module_report_list:\n
report_list.append((translated_title, module_report_list))\n
\n
......@@ -199,7 +199,7 @@
form_id=form_id,\n
selection_name=selection_name,\n
dialog_category=\'object_print\')).strip()\n
module_print_list.append((print_action[\'name\'], url))\n
module_print_list.append((N_(print_action[\'name\']), url))\n
if module_print_list:\n
print_list.append((translated_title, module_print_list))\n
\n
......@@ -294,6 +294,12 @@ return getModuleActionInformationDict(user=getSecurityManager().getUser(),\n
<key> <string>id</string> </key>
<value> <string>ERP5Site_getCategorizedModuleActionInformationDict</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
......
587
\ No newline at end of file
590
\ 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