update labels about number of search results

This commit is contained in:
Frédéric Péters 2014-02-11 10:40:45 +01:00
parent 766eb45345
commit ed6a0a08eb
1 changed files with 7 additions and 10 deletions

View File

@ -9,11 +9,14 @@
<div class="table">
<div class="table-top">
<span i18n:translate="batch_x_items_matching_your_criteria">
<strong i18n:name="number" id="search-results-number"
<tal:block>
<span tal:condition="not: results/sequence_length">Aucun élément.</span>
<span tal:condition="results/sequence_length">
<strong id="search-results-number"
tal:content="results/sequence_length">234</strong>
items matching your search terms.
</span>
élément(s).
</span>
</tal:block>
<input type="hidden" name="table-batchSize" id="table-batchSize"/>
<input type="hidden" name="table-extra-columns" id="table-extra-columns"
tal:attributes="value python:context.table.getExtraColumns()"/>
@ -37,12 +40,6 @@
</div>
<div class="table-container">
<p tal:condition="not: results">
<strong i18n:translate="description_no_results_found">
No results were found.
</strong>
</p>
<div tal:condition="results"
tal:replace="structure python: context.table.render()"/>