Public bug reported:

Binary package hint: language-pack-kde-lt-base

KDE Lithuanian translation has 4 plural forms instead of the 3 usually
used when localizing OSS projects. So the plural header of each *.po
file looks like this:

"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10==1 && n%100!=11 ? 1 : n"
"%10>=2 && (n%100<10 || n%100>=20) ? 2 : 3);\n"

But the actual plural forms are cut to three, leaving out the fourth
form:

msgid "1 action"
msgid_plural "%1 actions"
msgstr[0] "1 veiksmas"
msgstr[1] "%1 veiksmas"
msgstr[2] "%1 veiksmai"

The missing string is:

msgstr[3] "%1 veiksmų"

This example is taken form 
/usr/share/locale-langpack/lt/LC_MESSAGES/krunner.mo 
file of the package version 
language-pack-kde-lt-base-11.04+20110421

but the problem is common to all translations in that package (of course
it goes back to source package).

I think this is a regression from the times of Lucid, it was solved
then, and the problem was, that Launchpad translation system assumed a
language in Launchpad has the same number of plural forms for all
packages/projects.

$ lsb_release -rd
Description:    Ubuntu 11.04
Release:        11.04

$ apt-cache policy language-pack-kde-lt-base
language-pack-kde-lt-base:
  Įdiegta:    1:11.04+20110421
  Kandidatas: 1:11.04+20110421
  Versijų lentelė:
 *** 1:11.04+20110421 0
         50 http://lt.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

While the expected behaviour is for the interface to show correct
strings of plural forms, the actual behaviour is that the fourth form is
substituted by the first, thus, for example, in the countdown before
shutdown we get:

Atsijungiama po 1 sekundės. (should be 30 sekundžių).
Atsijungiama po 29 sekundžių (correct)
.....  (correct)
Atsijungiama po 21 sekundės (correct)
Atsijungiama po 1 sekundės (should be 20 sekundžių)
.... (incorrect)
Atsijungiama po 9 sekundžių (correct)
.... (correct)
Atsijungiama po 1 sekundės (correct)

** Affects: language-pack-kde-lt-base (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/782031

Title:
  The fourth plural form is missing from Lithuanian localizations

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to