Use msgstr[0] when stringifying an untranslated plural item.
This commit is contained in:
32
test/fixtures/plural.po
vendored
Normal file
32
test/fixtures/plural.po
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# French translation of Link (6.x-2.9)
|
||||
# Copyright (c) 2011 by the French translation team
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Link (6.x-2.9)\n"
|
||||
"POT-Creation-Date: 2011-12-31 23:39+0000\n"
|
||||
"PO-Revision-Date: 2013-12-17 14:59+0100\n"
|
||||
"Language-Team: French\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"
|
||||
"Last-Translator: Ruben Vermeersch <ruben@rocketeer.be>\n"
|
||||
"Language: fr\n"
|
||||
"X-Generator: Poedit 1.6.2\n"
|
||||
|
||||
# correct plurals, with translation
|
||||
msgid "1 source"
|
||||
msgid_plural "{{$count}} sources"
|
||||
msgstr[0] "1 source"
|
||||
msgstr[1] "{{$count}} sources"
|
||||
|
||||
# correct plurals, with no translation
|
||||
msgid "1 destination"
|
||||
msgid_plural "{{$count}} destinations"
|
||||
msgstr[0] ""
|
||||
|
||||
# incorrect plurals, with no translation
|
||||
msgid "1 mistake"
|
||||
msgid_plural "{{$count}} mistakes"
|
||||
msgstr ""
|
||||
Reference in New Issue
Block a user