The fourth plural form is missing from Lithuanian localizations

Bug #782031 reported by Donatas Glodenis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
language-pack-kde-lt-base (Ubuntu)
New
Undecided
Unassigned

Bug Description

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)

Revision history for this message
Donatas Glodenis (dgvirtual) wrote :

A workaround for this problem would be installing kde-l10n-lt package perhaps – I have just updated to kde 4.6.3 from kubuntu ppa, and the problem went away, because this package from ppa was automatically installed.

 I just checked and the package kde-l10n-lt (4:4.6.2-0ubuntu1) from natty main repositories does not have the above mentioned problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.