Commit 1106b758 authored by Ivan Tyagov's avatar Ivan Tyagov

We must translate whole number of records message rather than just "records"...

We must translate whole number of records message rather than just "records" part as in some languages "123 records" can be translated as "records 123". Do same for "selected" part.
Small optimization.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38254 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6dc90be
...@@ -126,27 +126,26 @@ ...@@ -126,27 +126,26 @@
\n \n
<!-- Number of listbox records -->\n <!-- Number of listbox records -->\n
<div class="listbox-number-of-records"\n <div class="listbox-number-of-records"\n
metal:define-macro="listbox_number_of_records"\n metal:define-macro="listbox_number_of_records">\n
tal:define="is_default_listbox_field python: field_id==\'listbox\';">\n
\n \n
<span class="listbox-current-page-start-number"\n <span class="listbox-current-page-start-number"\n
tal:content="current_page_start"/> - \n tal:content="current_page_start"/> - \n
<span class="listbox-current-page-stop-number"\n <span class="listbox-current-page-stop-number"\n
tal:content="current_page_stop"/> \n tal:content="current_page_stop"/> \n
<span i18n:translate="" i18n:domain="ui">of</span>\n <span i18n:translate="" i18n:domain="ui">of</span>\n
\n
<span class="listbox-current-page-total-number"\n <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
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 i18n:translate="" i18n:domain="ui">\n
<span i18n:translate="" i18n:domain="ui">records</span> \n <tal:block tal:replace="total_line" i18n:name="number">0</tal:block> records\n
</span>\n
\n \n
<tal:block tal:condition="show_select_column"> - \n
<span class="listbox-current-item-number"\n <span class="listbox-current-item-number"\n
tal:condition="show_select_column"\n
tal:attributes="class string:${field_id}-current-item-number"\n tal:attributes="class string:${field_id}-current-item-number"\n
i18n:translate="" i18n:domain="ui">\n i18n:translate="" i18n:domain="ui">\n
<tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block>\n - <tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block> items selected\n
</span>\n </span>\n
<span i18n:translate="" i18n:domain="ui">items selected</span>\n
</tal:block>\n
\n \n
</div>\n </div>\n
\n \n
......
...@@ -201,8 +201,7 @@ ...@@ -201,8 +201,7 @@
<tal:block metal:define-macro="text_navigation"\n <tal:block metal:define-macro="text_navigation"\n
tal:define="offset python: 7;\n tal:define="offset python: 7;\n
all_page_index_list python: range(1, here.total_pages + 1);\n all_page_index_list python: range(1, here.total_pages + 1);\n
page_index_list python: all_page_index_list[max(current_page-offset, 1)-1: min(current_page+offset, len(all_page_index_list))];\n page_index_list python: all_page_index_list[max(current_page-offset, 1)-1: min(current_page+offset, len(all_page_index_list))];">\n
is_default_listbox_field python: field_id==\'listbox\';">\n
\n \n
<!-- Non gadget mode -->\n <!-- Non gadget mode -->\n
<tal:block tal:condition="not: is_gadget_mode">\n <tal:block tal:condition="not: is_gadget_mode">\n
...@@ -227,8 +226,7 @@ ...@@ -227,8 +226,7 @@
</tal:block>\n </tal:block>\n
\n \n
<!-- Slider navigation with input (i.e. first, previous, next, last links)-->\n <!-- Slider navigation with input (i.e. first, previous, next, last links)-->\n
<tal:block metal:define-macro="page_navigation"\n <tal:block metal:define-macro="page_navigation">\n
tal:define="is_default_listbox_field python: field_id==\'listbox\';">\n
<tal:block tal:condition="python: here.total_pages > 1">\n <tal:block tal:condition="python: here.total_pages > 1">\n
\n \n
<!-- Non gadget mode -->\n <!-- Non gadget mode -->\n
......
1005 1006
\ No newline at end of file \ 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