Translations: plural forms
Bug #730499 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Charlotte project |
Fix Released
|
Critical
|
Alex Chiang | ||
unity-2d |
Fix Released
|
Critical
|
Aurélien Gâteau |
Bug Description
(originated from question #148053)
In the trunk of unity-2d, the only translation file currently available is French (fr.po), which is generated/updated by invoking `make update-po`. This file is missing a 'Plural-Forms' header entry, and strings that contain plural forms are missing a 'msgid_plural' entry (they have a 'qt-plural-format' marker though, I’m not sure if it’s used and how).
Note that the source code that is correctly prepared for plural forms, as described at http://
Related branches
lp://staging/~agateau/unity-2d/gettext2
- Florian Boucault: Pending requested
-
Diff: 1113 lines (+344/-324)23 files modifiedlauncher/UnityApplications/launcherapplication.cpp (+5/-2)
launcher/UnityApplications/launcherdevice.cpp (+3/-1)
launcher/UnityApplications/trash.cpp (+6/-3)
launcher/UnityApplications/workspaces.cpp (+4/-1)
launcher/app/launcher.cpp (+4/-6)
libunity-2d-private/src/CMakeLists.txt (+2/-1)
libunity-2d-private/src/gettexttranslator.cpp (+0/-85)
libunity-2d-private/src/gettexttranslator.h (+0/-61)
libunity-2d-private/src/unity2dtr.cpp (+78/-0)
libunity-2d-private/src/unity2dtr.h (+70/-0)
libunity-2d-private/tests/CMakeLists.txt (+4/-4)
libunity-2d-private/tests/fr.po (+5/-0)
libunity-2d-private/tests/gettexttest.cpp (+0/-74)
libunity-2d-private/tests/unity2dtrtest.cpp (+55/-0)
panel/app/main.cpp (+2/-4)
places/GroupHeader.qml (+1/-1)
places/Home.qml (+8/-8)
places/SearchEntry.qml (+2/-2)
places/SearchRefine.qml (+2/-2)
places/app/places.cpp (+3/-4)
po/fr.po (+69/-50)
po/unity-2d.pot (+16/-13)
po/update-unity-2d-pot (+5/-2)
Changed in unity-2d: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 3.8 |
tags: | added: charlotte-backport-needed |
Changed in unity-2d: | |
status: | Triaged → In Progress |
Changed in unity-2d: | |
status: | In Progress → Fix Committed |
Changed in charlotte: | |
milestone: | none → m4-rc2 |
Changed in unity-2d: | |
status: | Fix Committed → Fix Released |
Changed in charlotte: | |
assignee: | nobody → Alex Chiang (achiang) |
status: | New → Triaged |
importance: | Undecided → High |
importance: | High → Critical |
Changed in charlotte: | |
status: | Triaged → In Progress |
Changed in charlotte: | |
status: | In Progress → Fix Committed |
Changed in charlotte: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
xgettext has support for Qt format strings through the --qt option. That is why there are some "qt-plural-format" markers. The questions though are:
1. Are plural currently working in our hybrid QTranslator/gettext system?
This can be checked with a unit-test, I am going to give it a try.
2. Does launchpad support these markers?
Subscribing dpm for this question.