[Bug 586814] Re: custom (pgk) translations preempted by lang pack

Launchpad Bug Tracker 586814 at bugs.launchpad.net
Tue May 5 05:27:27 UTC 2020


[Expired for grub2 (Ubuntu) because there has been no activity for 60
days.]

** Changed in: grub2 (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/586814

Title:
  custom (pgk) translations preempted by lang pack

Status in grub2 package in Ubuntu:
  Expired

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/locale/<lang>.mo, thus making the custom translations
  available at run time. However,  I found that if there is a grub.mo
  file installed by lang packs (in /usr/share/locale-
  langpack/<lang>/LC_MESSAGES/grub.po, then it would be copied during
  install to /boot/grub/locale/<lang>.mo. This causes custom package
  translations to be overriding by lang packs, which is not desirable, I
  believe. Instead, the package should be able (like other packages) to
  install its own translations with them overriding any that may be
  delivered by language packs,  and in this way, enabling package
  customization.

  I traced the problem down to a script: util/grub-install.in

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/586814/+subscriptions



More information about the foundations-bugs mailing list