Commit f30e75e7 authored by Ivan Tyagov's avatar Ivan Tyagov

Translate "items selected" and show only if "select column" is present.

Translate sortable columns.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38243 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 709715f2
......@@ -287,21 +287,23 @@
<button tal:condition="not:is_gadget_mode"\n
type="submit"\n
name="setSelectionQuickSortOrder:method"\n
tal:content="title"\n
tal:attributes="title title;\n
value listbox_field_id;\n
class bt_class;"\n
i18n:domain="ui" i18n:attributes="title"/>\n
i18n:domain="ui" i18n:attributes="title">\n
<span i18n:translate="" i18n:domain="ui" tal:content="title"/>\n
</button>\n
\n
<!-- Button in gadget mode -->\n
<button tal:condition="is_gadget_mode" \n
tal:define ="params python: {\'setSelectionQuickSortOrder:method\':listbox_field_id};"\n
type="button" \n
tal:content="title"\n
tal:attributes="title title; \n
onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params);\n
class bt_class;"\n
i18n:domain="ui" i18n:attributes="title"/>\n
i18n:domain="ui" i18n:attributes="title">\n
<span i18n:translate="" i18n:domain="ui" tal:content="title"/>\n
</button>\n
\n
<!-- Icon showing sort order -->\n
<img src="images/transparent-image.gif"\n
......
......@@ -137,16 +137,16 @@
<span class="listbox-current-page-total-number"\n
tal:content="total_line"\n
tal:attributes="class python: test(is_default_listbox_field, \'listbox-current-page-total-number\', \'listbox-current-page-total-number %s-current-page-total-number\' %field_id)" />\n
<span i18n:translate="" i18n:domain="ui">records</span> - \n
\n
<span class="listbox-current-item-number"\n
tal:attributes="class string:${field_id}-current-item-number"\n
tal:condition="show_select_column"\n
i18n:translate="" i18n:domain="ui">\n
<tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block>\n
</span>\n
<span i18n:translate="" i18n:domain="ui">items selected</span>\n
\n
<span i18n:translate="" i18n:domain="ui">records</span> \n
\n
<tal:block tal:condition="show_select_column"> - \n
<span class="listbox-current-item-number"\n
tal:attributes="class string:${field_id}-current-item-number"\n
i18n:translate="" i18n:domain="ui">\n
<tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block>\n
</span>\n
<span i18n:translate="" i18n:domain="ui">items selected</span>\n
</tal:block>\n
\n
</div>\n
\n
......
1003
\ No newline at end of file
1005
\ 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