Created attachment 9847 [details] Patch to support run-time translation of theme labels Whilst implementing the transition to using GRUB2 as the MBR bootloader on the Mageia ISOs, I have added support for the user to select a different language in the boot menu. GRUB2 supports run-time translation of all messages except labels taken from the theme configuration file. The attached patch allows those labels to be translated as well. To keep the patch simple, it will translate any label (if the gettext module is loaded and a translation exists), rather than requiring the string to be prefixed by $", as is required elsewhere. I don't see this as a big issue - if the user has loaded the gettext module and supplied translations, we can reasonably assume they want to use them ;-) Implementing support for $" would make the patch considerably bigger, as currently the theme file parser only looks ahead one character. I have submitted this patch upstream: http://savannah.gnu.org/bugs/?52626 but no response as yet.
Still no response from upstream. Any objection to me adding this patch to the Mageia package?
No objections from me :) It may be worth asking 'phcoder' on #grub irc about this or mailing either: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com> or Andrei Borzenkov <arvidjaar@gmail.com> either directly or preferably via the grub-dev ML for comments.
Thanks Barry. I've pushed this to cauldron.
Status: NEW => RESOLVEDResolution: (none) => FIXED