Button wording

This commit is contained in:
Éloi Rivard 2020-12-31 12:41:38 +01:00
parent d969065016
commit 2a501a5485
5 changed files with 19 additions and 7 deletions

View file

@ -98,7 +98,11 @@
{% endif %} {% endif %}
{% if user.moderator and edited_user %} {% if user.moderator and edited_user %}
<button type="submit" class="ui right floated basic negative button confirm" name="action" value="delete" id="delete"> <button type="submit" class="ui right floated basic negative button confirm" name="action" value="delete" id="delete">
{{ _("Delete the user") }} {% if user.uid != edited_user.uid %}
{{ _("Delete the user") }}
{% else %}
{{ _("Delete my account") }}
{% endif %}
</button> </button>
{% endif %} {% endif %}
</form> </form>

View file

@ -7,7 +7,7 @@ pybabel extract --mapping-file canaille/translations/babel.cfg --output-file can
Add a new language with: Add a new language with:
``` ```
pybabel init --input-file messages.pot --output-dir translations --locale <LANG> pybabel init --input-file canaille/translations/messages.pot --output-dir canaille/translations --locale <LANG>
``` ```
Update the catalogs with: Update the catalogs with:

View file

@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: contact@yaal.fr\n" "Report-Msgid-Bugs-To: contact@yaal.fr\n"
"POT-Creation-Date: 2020-12-11 12:03+0100\n" "POT-Creation-Date: 2020-12-31 12:40+0100\n"
"PO-Revision-Date: 2020-12-11 12:04+0100\n" "PO-Revision-Date: 2020-12-31 12:40+0100\n"
"Last-Translator: Éloi Rivard <eloi@yaal.fr>\n" "Last-Translator: Éloi Rivard <eloi@yaal.fr>\n"
"Language: fr_FR\n" "Language: fr_FR\n"
"Language-Team: French - France <equipe@yaal.fr>\n" "Language-Team: French - France <equipe@yaal.fr>\n"
@ -534,10 +534,14 @@ msgstr "Informations sur le compte"
msgid "Impersonate" msgid "Impersonate"
msgstr "Prendre l'identité" msgstr "Prendre l'identité"
#: canaille/templates/profile.html:101 #: canaille/templates/profile.html:102
msgid "Delete the user" msgid "Delete the user"
msgstr "Supprimer l'utilisateur" msgstr "Supprimer l'utilisateur"
#: canaille/templates/profile.html:104
msgid "Delete my account"
msgstr "Supprimer mon compte"
#: canaille/templates/reset-password.html:12 #: canaille/templates/reset-password.html:12
#: canaille/templates/reset-password.html:19 #: canaille/templates/reset-password.html:19
msgid "Password reset" msgid "Password reset"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-12-11 12:03+0100\n" "POT-Creation-Date: 2020-12-31 12:40+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -509,10 +509,14 @@ msgstr ""
msgid "Impersonate" msgid "Impersonate"
msgstr "" msgstr ""
#: canaille/templates/profile.html:101 #: canaille/templates/profile.html:102
msgid "Delete the user" msgid "Delete the user"
msgstr "" msgstr ""
#: canaille/templates/profile.html:104
msgid "Delete my account"
msgstr ""
#: canaille/templates/reset-password.html:12 #: canaille/templates/reset-password.html:12
#: canaille/templates/reset-password.html:19 #: canaille/templates/reset-password.html:19
msgid "Password reset" msgid "Password reset"