Inject ngettext into Tera templates

Fix .po updating (without the -U option, the result was written to stdout, not the .po file)
This commit is contained in:
Bat
2018-06-17 11:16:20 +01:00
parent 657a0837e2
commit 25ec318f3f
10 changed files with 61 additions and 3 deletions
+5
View File
@@ -14,3 +14,8 @@ msgstr ""
msgid "Welcome on {{ instance_name }}"
msgstr "Welcome on {{ instance_name }}"
msgid "One follower"
msgid_plural "{{ count }} followers"
msgstr[0] "One follower"
msgstr[1] "{{ count }} followers"
+16
View File
@@ -0,0 +1,16 @@
msgid ""
msgstr ""
"Project-Id-Version: plume\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-15 16:33-0700\n"
"PO-Revision-Date: 2018-06-15 16:33-0700\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Welcome on {{ instance_name }}"
msgstr "Welcome on {{ instance_name }}"
+5
View File
@@ -14,3 +14,8 @@ msgstr ""
msgid "Welcome on {{ instance_name }}"
msgstr "Bienvenue sur {{ instance_name }}"
msgid "One follower"
msgid_plural "{{ count }} followers"
msgstr[0] "{{ count }} abonné⋅e"
msgstr[1] "{{ count }} abonné⋅e⋅s"
+16
View File
@@ -0,0 +1,16 @@
msgid ""
msgstr ""
"Project-Id-Version: plume\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-15 16:33-0700\n"
"PO-Revision-Date: 2018-06-15 16:33-0700\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Welcome on {{ instance_name }}"
msgstr "Bienvenue sur {{ instance_name }}"
+5
View File
@@ -14,3 +14,8 @@ msgstr ""
msgid "Welcome on {{ instance_name }}"
msgstr ""
msgid "One follower"
msgid_plural "{{ count }} followers"
msgstr[0] ""
msgstr[1] ""