Przeglądaj źródła

Finally fix the emailReset template translation

Camille Masset 9 lat temu
rodzic
commit
f234dda4c9

+ 1 - 1
counter/templates/resetEmail.txt

3
 {% block reset_link %}
3
 {% block reset_link %}
4
 {{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
4
 {{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
5
 {% endblock %}
5
 {% endblock %}
6
-{% blocktrans %}Your login is {{ user.username }} in case you have forgotten it too.{% endblocktrans %}
6
+{% blocktrans with login=user.username %}Your login is {{ login }} in case you have forgotten it too.{% endblocktrans %}
7
 
7
 
8
 --
8
 --
9
 SeumBook™ - http://seum.merigoux.ovh
9
 SeumBook™ - http://seum.merigoux.ovh

+ 2 - 2
locale/en/LC_MESSAGES/django.po

8
 msgstr ""
8
 msgstr ""
9
 "Project-Id-Version: PACKAGE VERSION\n"
9
 "Project-Id-Version: PACKAGE VERSION\n"
10
 "Report-Msgid-Bugs-To: \n"
10
 "Report-Msgid-Bugs-To: \n"
11
-"POT-Creation-Date: 2017-01-23 12:30+0000\n"
11
+"POT-Creation-Date: 2017-01-23 15:08+0000\n"
12
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
 "Language-Team: LANGUAGE <LL@li.org>\n"
14
 "Language-Team: LANGUAGE <LL@li.org>\n"
505
 
505
 
506
 #: counter/templates/resetEmail.txt:6
506
 #: counter/templates/resetEmail.txt:6
507
 #, python-format
507
 #, python-format
508
-msgid "Your login is %(user.username)s in case you have forgotten it too."
508
+msgid "Your login is %(login)s in case you have forgotten it too."
509
 msgstr ""
509
 msgstr ""
510
 
510
 
511
 #: counter/templates/resetEmail.txt:11
511
 #: counter/templates/resetEmail.txt:11

+ 3 - 7
locale/fr/LC_MESSAGES/django.po

8
 msgstr ""
8
 msgstr ""
9
 "Project-Id-Version: PACKAGE VERSION\n"
9
 "Project-Id-Version: PACKAGE VERSION\n"
10
 "Report-Msgid-Bugs-To: \n"
10
 "Report-Msgid-Bugs-To: \n"
11
-"POT-Creation-Date: 2017-01-23 12:30+0000\n"
11
+"POT-Creation-Date: 2017-01-23 15:08+0000\n"
12
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
 "Language-Team: LANGUAGE <LL@li.org>\n"
14
 "Language-Team: LANGUAGE <LL@li.org>\n"
525
 "lien pour le réinitialiser :"
525
 "lien pour le réinitialiser :"
526
 
526
 
527
 #: counter/templates/resetEmail.txt:6
527
 #: counter/templates/resetEmail.txt:6
528
-#, fuzzy, python-format
529
-#| msgid "Your login is {{ user.username }} in case you have forgotten it too."
530
-msgid "Your login is %(user.username)s in case you have forgotten it too."
531
-msgstr ""
532
-"Ton nom d'utilisateur c'est {{ user.username }} au cas où tu l'aurais oublié "
533
-"aussi."
528
+msgid "Your login is %(login)s in case you have forgotten it too."
529
+msgstr "Ton login c'est %(login)s, au cas où tu l'aurais oublié aussi."
534
 
530
 
535
 #: counter/templates/resetEmail.txt:11
531
 #: counter/templates/resetEmail.txt:11
536
 msgid ""
532
 msgid ""