Comment 18 for bug 51609

Revision history for this message
Szyszart (szyszart) wrote :

I've noticed that the Polish translation is also broken. Adept Notifier shows something like "Broken translation. There is %n updated packages".

I've found what the reason is and how to repair it. There is no plural form definition in adept_notifier.po (text file, which contains the translation). All you have to do to repair the translation is to download the adept_notifier.po file from http://i18n.kde.org/stats/gui/trunk/pl/playground-sysadmin/index.php (of course download a version for your language), add one line with a suitable plural declaration (you can found a plural declaration for your language here: https://translations.launchpad.net/ubuntu/edgy/+source/adept/+pots/adept-notifier - open this page and select your language - a plural declaration will be shown somewhere on the page), use msgfmt to "compile" the translation (open a terminal, go to a directory containing the po file and type: msgfmt adept_notifier.po -o adept_notifier.mo) and finally copy the *.mo file which is the output of msgfmt to the right directory (which is /usr/share/locale-langpack/<your language>/LC_MESSAGES/).

This is how the header of adept_notifier.po should look (the plural definition is for Polish):

msgid ""
msgstr ""
"Project-Id-Version: adept_notifier\n"
"POT-Creation-Date: 2006-05-01 11:11+0200\n"
"PO-Revision-Date: 2006-03-21 08:37+0100\n"
... blah blah blah
"X-Generator: KBabel 1.11.2\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

The last line is the line which really matters.

For Polish users: I've attached the modified version of adept_notifier.po and adept_notifer.mo (the "compiled" version, ready to use).

Hope that helps.