Make .pot Transifex compliant
authorDaniel Albers <daniel@lbe.rs>
Mon, 23 Jan 2012 09:24:57 +0000 (10:24 +0100)
committerDaniel Albers <daniel@lbers.com>
Mon, 23 Jan 2012 22:24:26 +0000 (23:24 +0100)
Thanks a lot to Ratnadeep Debnath of Indifex

po/README.Translations
po/quassel.pot
po/quassel.pot.patch [new file with mode: 0644]
po/update-pot.sh [new file with mode: 0755]

index 84e8f2a..29a6d9c 100644 (file)
@@ -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`
index c8d6875..d460562 100644 (file)
@@ -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 (file)
index 0000000..ea15e68
--- /dev/null
@@ -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 (executable)
index 0000000..824ede3
--- /dev/null
@@ -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