73b267b3e8
Some languages (such as Polish, Russian or Romanian) do have more complicated plural forms. Those are still expressible by a more complicated mathematical expression. However, the msgmerge tool of gettext will in these cases write multiline header fields. When parsing such files with this lib, the headers get screwed up, so this patch provides an example (from a pl_PL po file) and fixes this by joining the lines in the header, before doing the actual parsing.
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
# French translation of Link (6.x-2.9)
|
|
# Copyright (c) 2011 by the French translation team
|
|
#
|
|
## Plural-Forms by polish translation team to demonstrate multi-line ##
|
|
#
|
|
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:21+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=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
|
"|| n%100>=20) ? 1 : 2;\n"
|
|
"Last-Translator: Ruben Vermeersch <ruben@rocketeer.be>\n"
|
|
"Language: fr\n"
|
|
"X-Generator: Poedit 1.6.2\n"
|
|
|
|
msgid ""
|
|
"The following placeholder tokens can be used in both paths and titles. When "
|
|
"used in a path or title, they will be replaced with the appropriate values."
|
|
msgstr ""
|
|
"Les ébauches de jetons suivantes peuvent être utilisées à la fois dans les "
|
|
"chemins et dans les titres. Lorsqu'elles sont utilisées dans un chemin ou un "
|
|
"titre, elles seront remplacées par les valeurs appropriées."
|