Skip to content

Commit

Permalink
Fixed translation non supporting plural form
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Sep 30, 2016
1 parent 8bb2f09 commit 6b2f5dc
Show file tree
Hide file tree
Showing 47 changed files with 254 additions and 598 deletions.
Expand Up @@ -105,8 +105,7 @@ public void setOwner(Window owner) {
OpenWithDialog initFor(InputPdfArgumentsLoadRequest event) {

this.messageTitle
.setText(DefaultI18nContext.getInstance().i18npl("Select the task to perform on the following file",
"Select the task to perform on the following files", event.pdfs.size()));
.setText(DefaultI18nContext.getInstance().i18n("Select the task to perform on the following files"));
filesList
.setItems(FXCollections.observableArrayList(event.pdfs.stream().map(Path::toString).collect(toList())));
modules.forEach(m -> {
Expand Down
2 changes: 1 addition & 1 deletion pdfsam-i18n/README.txt
@@ -1,6 +1,6 @@
TO GENERATE AN UPDATED pdfsam.pot

xgettext -ki18npl:1,2 -ki18n -L Java -o po/pdfsam.pot --copyright-holder='Copyright 2013 by Andrea Vacondio (andrea.vacondio@gmail.com)' --msgid-bugs-address=info@pdfsam.org --no-location $(find ../ -name "*.java") --from-code=UTF-8
xgettext -ki18n -L Java -o po/pdfsam.pot --copyright-holder='Copyright 2013 by Andrea Vacondio (andrea.vacondio@gmail.com)' --msgid-bugs-address=info@pdfsam.org --no-location $(find ../ -name "*.java") --from-code=UTF-8


To rename when downloaded from Launchpad
Expand Down
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/af.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2016-09-08 13:59+0000\n"
"Last-Translator: kek <Unknown>\n"
"Language-Team: Afrikaans <af@li.org>\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"
"X-Launchpad-Export-Date: 2016-09-25 08:40+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -369,10 +369,8 @@ msgstr ""
msgid "Open with"
msgstr ""

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr ""
Expand Down
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/ast.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2014-03-03 14:12+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Asturian <ast@li.org>\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"
"X-Launchpad-Export-Date: 2016-09-25 08:41+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -370,10 +370,8 @@ msgstr ""
msgid "Open with"
msgstr ""

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr ""
Expand Down
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/bs.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2014-03-03 14:12+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Bosnian <bs@li.org>\n"
Expand All @@ -16,7 +16,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Launchpad-Export-Date: 2016-09-25 08:41+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -372,10 +372,8 @@ msgstr ""
msgid "Open with"
msgstr ""

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr ""
Expand Down
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/ca.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2015-02-08 02:49+0000\n"
"Last-Translator: Adolfo Jayme <fitoschido@gmail.com>\n"
"Language-Team: Catalan <ca@li.org>\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"
"X-Launchpad-Export-Date: 2016-09-25 08:40+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -371,10 +371,8 @@ msgstr ""
msgid "Open with"
msgstr ""

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr ""
Expand Down
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/ckb.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2015-02-04 19:18+0000\n"
"Last-Translator: Haval Abdulkarim <haval.abdulkarim@gmail.com>\n"
"Language-Team: Kurdish (Sorani) <ckb@li.org>\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"
"X-Launchpad-Export-Date: 2016-09-25 08:40+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -369,10 +369,8 @@ msgstr ""
msgid "Open with"
msgstr ""

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr ""
Expand Down
17 changes: 6 additions & 11 deletions pdfsam-i18n/po/co.po
Expand Up @@ -2,15 +2,15 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: info@pdfsam.org\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"PO-Revision-Date: 2016-08-24 13:24+0000\n"
"Last-Translator: Patriccollu <Patrick.Santa-Maria@laposte.net>\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2016-09-30 08:21+0000\n"
"Last-Translator: Andrea Vacondio <andrea.vacondio@gmail.com>\n"
"Language-Team: \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"
"X-Launchpad-Export-Date: 2016-09-25 08:40+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"
"Language: co\n"

Expand Down Expand Up @@ -387,10 +387,8 @@ msgstr "Cartulare inesistente"
msgid "Open with"
msgstr "Apre cù"

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] "Selezziunà a tacca à fà per stu schedariu"
msgstr[1] "Selezziunà a tacca à fà per sti schedarii"
msgid "Select the task to perform on the following files"
msgstr "Selezziunà a tacca à fà per sti schedarii"

msgid "Directory not empty"
msgstr "Cartulare micca viotu"
Expand Down Expand Up @@ -997,6 +995,3 @@ msgstr "Girà e pagine di parechji ducumenti PDF."

msgid "Rotate settings"
msgstr "Preferenze di u girà"

#~ msgid "Never"
#~ msgstr "Mai"
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/cs.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2016-01-19 19:15+0000\n"
"Last-Translator: Petr Katerinak <Unknown>\n"
"Language-Team: Czech <cs@li.org>\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>=2 && n<=4) ? 1 : 2;\n"
"X-Launchpad-Export-Date: 2016-09-25 08:41+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -380,10 +380,8 @@ msgstr "Neexistující adresář"
msgid "Open with"
msgstr ""

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr "Adresář není prázdný"
Expand Down
45 changes: 6 additions & 39 deletions pdfsam-i18n/po/da.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"PO-Revision-Date: 2016-09-22 18:01+0000\n"
"Last-Translator: vrw07286 <Unknown>\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2016-09-30 08:22+0000\n"
"Last-Translator: Andrea Vacondio <andrea.vacondio@gmail.com>\n"
"Language-Team: Danish <da@li.org>\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"
"X-Launchpad-Export-Date: 2016-09-25 08:41+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"
"Language: da\n"

Expand Down Expand Up @@ -386,10 +386,8 @@ msgstr "Ikke-eksisterende mappe"
msgid "Open with"
msgstr "Åbn med"

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] "Vælg handlingen, der skal foretages med den følgende fil"
msgstr[1] "Vælg handlingen, der skal foretages med de følgende filer"
msgid "Select the task to perform on the following files"
msgstr "Vælg handlingen, der skal foretages med de følgende filer"

msgid "Directory not empty"
msgstr "Mappe ikke tom"
Expand Down Expand Up @@ -986,34 +984,3 @@ msgstr "Roter sider fra flere PDF-dokumenter"

msgid "Rotate settings"
msgstr "Indstillinger for rotation"

#~ msgid "Split odd pages"
#~ msgstr "Opdel ved ulige sider"

#~ msgid "Split even pages"
#~ msgstr "Opdel ved lige sider"

#~ msgid "Unable to get latest available version"
#~ msgstr "Kunne ikke hente senest tilgængelige version"

#~ msgid "Destination folder"
#~ msgstr "Destinationsmappe"

#~ msgid "Never"
#~ msgstr "Aldrig"

#~ msgid "Would you like to overwrite it?"
#~ msgstr "Ønsker du at overskrive den?"

#~ msgid "Output document pdf version:"
#~ msgstr "Arbejdsfils pdf-version"

#~ msgid ""
#~ "Show a dialog box asking the user for confirmation when the \"overwrite\" is "
#~ "selected"
#~ msgstr ""
#~ "Viser en dialogbiks, der spørger brugeren om bekræftelse når \"Overskriv\" "
#~ "er valgt"

#~ msgid "Ask for confirmation when overwrite checkbox is selected"
#~ msgstr "Spørg om bekræftelse når afkrydsningsfeltet er markeret"
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/de.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2016-08-22 03:20+0000\n"
"Last-Translator: Denis Graipel <Unknown>\n"
"Language-Team: German <de@li.org>\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"
"X-Launchpad-Export-Date: 2016-09-25 08:41+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -390,10 +390,8 @@ msgstr "Nicht existierendes Verzeichnis"
msgid "Open with"
msgstr "Öffnen mit"

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr "Das Verzeichnis ist nicht leer"
Expand Down
10 changes: 4 additions & 6 deletions pdfsam-i18n/po/el.po
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: pdfsam\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-09-21 12:10+0200\n"
"POT-Creation-Date: 2016-09-30 10:43+0200\n"
"PO-Revision-Date: 2016-07-23 16:08+0000\n"
"Last-Translator: George Melidis <melidis@gmail.com>\n"
"Language-Team: Greek <el@li.org>\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"
"X-Launchpad-Export-Date: 2016-09-25 08:41+0000\n"
"X-Launchpad-Export-Date: 2016-09-30 08:48+0000\n"
"X-Generator: Launchpad (build 18204)\n"

msgid "Subscribe to the official news feed"
Expand Down Expand Up @@ -401,10 +401,8 @@ msgstr "Ο κατάλογος δεν υπάρχει"
msgid "Open with"
msgstr ""

msgid "Select the task to perform on the following file"
msgid_plural "Select the task to perform on the following files"
msgstr[0] ""
msgstr[1] ""
msgid "Select the task to perform on the following files"
msgstr ""

msgid "Directory not empty"
msgstr "Ο κατάλογος δεν είναι κενός"
Expand Down

0 comments on commit 6b2f5dc

Please sign in to comment.