Commit e4b06a5b authored by Vincent Pelletier's avatar Vincent Pelletier

Tell user when he is only viewing a sample of a larger object set.

Provide compatibility with non-upgraded products.
Also, update erp5_l10n_fr translation.
parent edc5efc2
......@@ -57,9 +57,6 @@ msgstr "${min_quantity} <= Quantité < ${max_quantity}"
msgid "${month_name} ${year}"
msgstr "${month_name} ${year}"
msgid "${number} records"
msgstr "${number} enregistrements "
msgid "${page} of ${total_pages}"
msgstr "${page} sur ${total_pages}"
......@@ -72,6 +69,9 @@ msgstr "${portal_type} créé avec succès."
msgid "${portal_type} updated successfully."
msgstr "${portal_type} mis à jour avec succès."
msgid "${sample} ${number} records"
msgstr "${sample} ${number} enregistrements "
msgid "${tax_category_title} (Amount or Percent)"
msgstr "${tax_category_title} (Montant ou Taux)"
......@@ -12459,6 +12459,9 @@ msgstr "Quantité"
msgid "quantity of the inventory"
msgstr "quantité de l'inventaire"
msgid "sample of"
msgstr "un extrait de"
msgid "script used to do localized calculs"
msgstr "Script utilisé pour faire certains calculs."
......
......@@ -67,6 +67,7 @@
line_list here/query;\n
listbox_max_lines python: int(here.getMaxLineNumber());\n
total_line python: int(here.total_size);\n
is_sample python: getattr(here, \'is_sample\', False);\n
current_page python: int(here.current_page) + 1;\n
current_page_max python: listbox_max_lines * current_page;\n
current_page_start python: (listbox_max_lines * (current_page - 1)) + 1;\n
......
......@@ -150,6 +150,7 @@
<span class="listbox-current-page-total-number"\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
<tal:block tal:condition="is_sample" tal:replace="python: \'sample of\'" i18n:translate="" i18n:domain="ui" i18n:name="sample"></tal:block>\n
<tal:block tal:replace="total_line" i18n:name="number">0</tal:block> records\n
</span>\n
\n
......
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