Ver código fonte

Finally fix the emailReset template translation

Camille Masset 9 anos atrás
pai
commit
f234dda4c9

+ 1 - 1
counter/templates/resetEmail.txt

@@ -3,7 +3,7 @@
3 3
 {% block reset_link %}
4 4
 {{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
5 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 9
 SeumBook™ - http://seum.merigoux.ovh

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

@@ -8,7 +8,7 @@ msgid ""
8 8
 msgstr ""
9 9
 "Project-Id-Version: PACKAGE VERSION\n"
10 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 12
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -505,7 +505,7 @@ msgstr ""
505 505
 
506 506
 #: counter/templates/resetEmail.txt:6
507 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 509
 msgstr ""
510 510
 
511 511
 #: counter/templates/resetEmail.txt:11

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

@@ -8,7 +8,7 @@ msgid ""
8 8
 msgstr ""
9 9
 "Project-Id-Version: PACKAGE VERSION\n"
10 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 12
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -525,12 +525,8 @@ msgstr ""
525 525
 "lien pour le réinitialiser :"
526 526
 
527 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 531
 #: counter/templates/resetEmail.txt:11
536 532
 msgid ""