manager: use ngettext (#34237)

This commit is contained in:
Benjamin Dauvergne 2019-06-22 22:23:51 +02:00
parent fd2639ca18
commit 4dd3e9bb4a
2 changed files with 25 additions and 13 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: authentic2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-22 16:47+0200\n"
"POT-Creation-Date: 2019-06-22 22:23+0200\n"
"PO-Revision-Date: 2019-06-19 11:09+0200\n"
"Last-Translator: Benjamin Dauvergne <bdauvergne@entrouvert.com>\n"
"Language-Team: French <fr@li.org>\n"
@ -986,20 +986,32 @@ msgid "Abstract"
msgstr "Résumé"
#: src/authentic2/manager/templates/authentic2/manager/user_import_report.html:80
msgid "rows"
msgstr "lignes"
#, python-format
msgid "%(rows)s row"
msgid_plural "%(rows)s rows"
msgstr[0] "%(rows)s ligne"
msgstr[1] "%(rows)s lignes"
#: src/authentic2/manager/templates/authentic2/manager/user_import_report.html:81
msgid "user(s) created"
msgstr "utilisateur(s) créé(s)"
#, python-format
msgid "%(created)s user created"
msgid_plural "%(created)s users created"
msgstr[0] "%(created)s utilisateur créé"
msgstr[1] "%(created)s utilisateurs créés"
#: src/authentic2/manager/templates/authentic2/manager/user_import_report.html:82
msgid "user(s) updated"
msgstr "utilisateur(s) mis à jour"
#, python-format
msgid "%(updated)s user updated"
msgid_plural "%(updated)s users updated"
msgstr[0] "%(updated)s utilisateur mis à jour"
msgstr[1] "%(updated)s utilisateurs mis à jour"
#: src/authentic2/manager/templates/authentic2/manager/user_import_report.html:83
msgid "rows have errors"
msgstr "des lignes contiennent des erreurs"
#, python-format
msgid "%(error_rows)s row has error"
msgid_plural "%(error_rows)s rows have errors"
msgstr[0] "%(error_rows)s ligne avec des erreurs"
msgstr[1] "%(error_rows)s lignes avec des erreurs"
#: src/authentic2/manager/templates/authentic2/manager/user_import_report.html:84
#, python-format

View File

@ -77,10 +77,10 @@
{% endif %}
<h3>{% trans "Abstract" %}</h3>
<ul>
<li>{{ importer.rows|length }} {% trans "rows" %}</li>
<li>{{ importer.created }} {% trans "user(s) created" %}</li>
<li>{{ importer.updated }} {% trans "user(s) updated" %}</li>
<li>{{ importer.rows_with_errors }} {% trans "rows have errors" %}</li>
<li>{% blocktrans count rows=importer.rows|length %}{{ rows }} row{% plural %}{{ rows }} rows{% endblocktrans %}</li>
<li>{% blocktrans count created=importer.created %}{{ created }} user created{% plural %}{{ created }} users created{% endblocktrans %}</li>
<li>{% blocktrans count updated=importer.updated %}{{ updated }} user updated{% plural %}{{ updated }} users updated{% endblocktrans %}</li>
<li>{% blocktrans count error_rows=importer.rows_with_errors %}{{ error_rows }} row has error{% plural %}{{ error_rows }} rows have errors{% endblocktrans %}</li>
<li>{% blocktrans with duration=report.duration %}import took {{ duration }}{% endblocktrans %}</li>
</ul>
<h3>{% trans "Details" %}</h3>