https://bugzilla.novell.com/show_bug.cgi?id=756195 https://bugzilla.novell.com/show_bug.cgi?id=756195#c0 Summary: zypper translation: plural forms handling in zypper summary is faulty Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Translations AssignedTo: ke@suse.com ReportedBy: alex239@gmail.com QAContact: ke@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.4 (KHTML, like Gecko) Chrome/19.0.1079.0 Safari/536.4 SUSE/19.0.1079.0 This one is really old bug, valid for all previous versions of openSUSE and it will appear in 12.2 for sure. There are translation issues with zypper.pot, which I comment with zypper.ru.po. Before taking real actions, zypper write up a summary. See an example message for 'zypper up' (similar messages for other actions): #: src/Summary.cc:546 msgid "The following package is going to be upgraded:" msgid_plural "The following packages are going to be upgraded:" msgstr[0] "Будет обновлён следующий пакет:" msgstr[1] "Будут обновлены следующие пакеты:" msgstr[2] "Будут обновлены следующие пакеты:" If zypper is used in English (or other Latin-derived languages) all works fine: it displays msgid (or msgstr[0]) string if there is only one package and msgid_plural (or msgstr[1]) in all other cases. Situation is totally different with Slavic languages, cause plural logic is much more complicated. There are three plural forms in Russian (as in a lot of East European languages), so you can see three msgstr lines in the example. Translations in msgstr[1] and msgstr[2] are the same, cause this complicated plural logic does not apply for phrases without an actual number (so, user should see msgstr[0] for one affected package and msgstr[1] for all other cases, like in English). But this message is displayed with a number taken in account, so the russian user sees msgstr[0] line also for cases when a number of updates (not written in the line) ends with 1 (like 91). So, gettext fails to ignore the number and single form messages get displayed when they shouldn't (like there is one package to operate when there is more). Imagine you see the line "The following package is going to be upgraded:" and then 91 packages listed. It is a clear bug. Reproducible: Always Steps to Reproduce: 1.Perform 'zypper up' or any other action, affecting 21,31…91 packages Actual Results: Wrong summary message gets displayed, cause an actual number is taken in account when it shouldn't Expected Results: Summary message is displayed in correct general form, like in English. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.