custom (pgk) translations preempted by lang pack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Expired
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: grub2
Lucid.
I needed to customize translations to pick up new strings introduced into source.
My customized version of grub2 was based on 1.98-1ubuntu6.
I made changes to pot & po files in po/. My expectation was that on install of grub-pc, those po files would become mo files here: /boot/grub/
I traced the problem down to a script: util/grub-
This script gets mo files if they exist in the lang packs or the package dir and copies them over.
The solution (see patch), is to split this into two movements:
1) first copy lang pack mo files, if any
2) then copy package mo files, if any
Thus the package will preempt language packs.
tags: | added: oem-services |
tags: | added: patch |
Changed in grub2 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
No, this is precisely backwards from how the language pack system is designed and how it works elsewhere in Ubuntu. Language packs are supposed to beat packaged translations.
Now, this works in Ubuntu because packaged translations are imported into Launchpad and then circle back to language packs. For customised projects, I would say that it's appropriate to make this sort of change, but I would rather not do so for Ubuntu.
I'd consider something that msgmerged the two translations so that you got language-pack translations in preference where they exist but also got a fallback to packaged translations where the language pack simply doesn't have the strings at all, although grub-pc doesn't depend on gettext at the moment and I'm slightly worried about introducing a dependency on a development package. Still, I think this would be a better approach.