From: Daniel Albers Date: Mon, 23 Jan 2012 09:24:57 +0000 (+0100) Subject: Make .pot Transifex compliant X-Git-Tag: 0.8-beta1~41 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=5f6d9d3e5761776f69b759db863c1d5d31a8a5b0;hp=6c14828a8c2a765c156bd6c904d97f0409aa1025 Make .pot Transifex compliant Thanks a lot to Ratnadeep Debnath of Indifex --- diff --git a/po/README.Translations b/po/README.Translations index 84e8f2a0..29a6d9c0 100644 --- a/po/README.Translations +++ b/po/README.Translations @@ -33,6 +33,4 @@ NOTE: You'll need lupdate, lconvert, lrelease installed with your Qt in package that tool; in that case you won't get translations. -The .pot file can be regenerated with this command: -lupdate ../src -ts quassel.ts && lconvert -i quassel.ts -o quassel.po \ - && msguniq -o quassel.pot quassel.po && rm quassel.ts quassel.po +The .pot file can be regenerated with `./update-pot.sh` diff --git a/po/quassel.pot b/po/quassel.pot index c8d68759..d4605620 100644 --- a/po/quassel.pot +++ b/po/quassel.pot @@ -3,12 +3,14 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Qt-Contexts: true\n" -"Project-Id-Version: \n" +"Project-Id-Version: Quassel IRC\n" "PO-Revision-Date: 2011-06-03 06:57+0000\n" "Last-Translator: \n" "Language-Team: \n" "Language: en_US\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"Report-Msgid-Bugs-To: http://bugs.quassel-irc.org/\n" +"X-Qt-Contexts: true\n" #: ../src/qtui/ui/aboutdlg.ui:17 msgctxt "AboutDlg|" @@ -2110,6 +2112,7 @@ msgctxt "CoreInfoDlg|" msgid "%n Day(s)" msgid_plural "%n Day(s)" msgstr[0] "" +msgstr[1] "" #: ../src/qtui/coreinfodlg.cpp:54 #, qt-format @@ -3751,6 +3754,7 @@ msgctxt "KNotificationBackend|" msgid "%n pending highlights" msgid_plural "%n pending highlights" msgstr[0] "" +msgstr[1] "" #: ../src/qtui/settingspages/keysequencewidget.cpp:77 msgctxt "KeySequenceButton|" @@ -4259,6 +4263,7 @@ msgctxt "MultiLineEdit|" msgid "Do you really want to paste %n lines?" msgid_plural "Do you really want to paste %n lines?" msgstr[0] "" +msgstr[1] "" #: ../src/uisupport/multilineedit.cpp:670 msgctxt "MultiLineEdit|" @@ -4363,6 +4368,7 @@ msgctxt "NetworkModelController|" msgid "Do you want to delete the following buffer(s) permanently?" msgid_plural "Do you want to delete the following buffer(s) permanently?" msgstr[0] "" +msgstr[1] "" #: ../src/uisupport/networkmodelcontroller.cpp:167 #, qt-format @@ -5480,6 +5486,7 @@ msgctxt "SystrayNotificationBackend|" msgid "%n pending highlights" msgid_plural "%n pending highlights" msgstr[0] "" +msgstr[1] "" #: ../src/qtui/systraynotificationbackend.cpp:135 msgctxt "SystrayNotificationBackend::ConfigWidget|" @@ -5890,6 +5897,7 @@ msgctxt "UserCategoryItem|" msgid "%n Owner(s)" msgid_plural "%n Owner(s)" msgstr[0] "" +msgstr[1] "" #: ../src/client/networkmodel.cpp:698 #, qt-format @@ -5897,6 +5905,7 @@ msgctxt "UserCategoryItem|" msgid "%n Admin(s)" msgid_plural "%n Admin(s)" msgstr[0] "" +msgstr[1] "" #: ../src/client/networkmodel.cpp:699 #, qt-format @@ -5904,6 +5913,7 @@ msgctxt "UserCategoryItem|" msgid "%n Operator(s)" msgid_plural "%n Operator(s)" msgstr[0] "" +msgstr[1] "" #: ../src/client/networkmodel.cpp:700 #, qt-format @@ -5911,6 +5921,7 @@ msgctxt "UserCategoryItem|" msgid "%n Half-Op(s)" msgid_plural "%n Half-Op(s)" msgstr[0] "" +msgstr[1] "" #: ../src/client/networkmodel.cpp:701 #, qt-format @@ -5918,6 +5929,7 @@ msgctxt "UserCategoryItem|" msgid "%n Voiced" msgid_plural "%n Voiced" msgstr[0] "" +msgstr[1] "" #: ../src/client/networkmodel.cpp:702 #, qt-format @@ -5925,3 +5937,4 @@ msgctxt "UserCategoryItem|" msgid "%n User(s)" msgid_plural "%n User(s)" msgstr[0] "" +msgstr[1] "" diff --git a/po/quassel.pot.patch b/po/quassel.pot.patch new file mode 100644 index 00000000..ea15e689 --- /dev/null +++ b/po/quassel.pot.patch @@ -0,0 +1,14 @@ +diff --git b/po/quassel.pot a/po/quassel.pot +index dcfb526..d460562 100644 +--- b/po/quassel.pot ++++ a/po/quassel.pot +@@ -5,2 +5,9 @@ msgstr "" + "Content-Transfer-Encoding: 8bit\n" ++"Project-Id-Version: Quassel IRC\n" ++"PO-Revision-Date: \n" ++"Last-Translator: \n" ++"Language-Team: \n" ++"Language: en_US\n" ++"Plural-Forms: nplurals=2; plural=(n != 1)\n" ++"Report-Msgid-Bugs-To: http://bugs.quassel-irc.org/\n" + "X-Qt-Contexts: true\n" diff --git a/po/update-pot.sh b/po/update-pot.sh new file mode 100755 index 00000000..824ede37 --- /dev/null +++ b/po/update-pot.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +lupdate ../src -ts quassel.ts && lconvert -i quassel.ts -o quassel.po \ + && msguniq -o quassel.pot quassel.po && rm quassel.ts quassel.po \ + && patch -Np2 < quassel.pot.patch \ + && sed -i -re 's/^msgstr\[0\] ""/msgstr[0] ""\nmsgstr[1] ""/;' quassel.pot