-
-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
When I create a file with the following content:
<?php ngettext("dog", "dogs", 2);
And I try to extract the string to a .po file like this:
$catalog = Translations::fromPhpCodeFile("test.php");
$catalog->setLanguage("de_DE");
$catalog->toPoFile("test.po");
The resulting file has the following content:
msgid ""
msgstr ""
# [ omitting irrelevant headers ]
"Language: de_DE\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
#: test.php:1
msgid "dog"
msgid_plural "dogs"
msgstr[0] ""
I am pretty sure there should be a msgstr[1] "" line at the end. Or am I missing something?
Metadata
Metadata
Assignees
Labels
No labels