Specify the gettext domain in .policy files to load translations at runtime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aptdaemon |
Fix Released
|
Medium
|
Sebastian Heinlein | ||
Ubuntu Translations |
Fix Released
|
High
|
Unassigned | ||
aptdaemon (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
A mechanism was implemented in bug 619632 to load translations from .policy files at runtime from .mo files, in the same way it is done in Ubuntu and OpenSuse for .desktop files. This new functionality has also been forwarded upstream, although there hasn't been a reply for a while.
If support for this is added to the aptdaemon Ubuntu package, this means that it will no longer be necessary to export translations from Launchpad at NonLanguagePack
For the upstream project, this will mean no change, other than having the gettext domain specified in translatable descriptions in the policy.in files.
Note that so far no package has been tested with this, so this should be verified.
On to the practical part. Quoting Robert Ancell:
To take advantage of this you need to modify the .policy files, i.e.:
<description>
<description xml:lang=
...
becomes:
<description gettext-
profiles<
Guessing you probably want to use a .in file and use intltool like this:
<_description gettext-
profiles<
Even if it's deemed not necessary to implement it upstream, it would be extremely useful to have it in the Ubuntu package.
Thanks!
Related branches
Changed in ubuntu-translations: | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
Changed in aptdaemon: | |
status: | In Progress → Fix Committed |
Changed in aptdaemon: | |
status: | Fix Committed → Fix Released |
Changed in aptdaemon (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in ubuntu-translations: | |
status: | Triaged → Fix Released |
I will add this in the upstream code. There isn't any need for a distro patch.