bugGNU GRUB - Bugs: bug #52626, Allow translation of theme labels...


You are not allowed to post comments on this tracker with your current authentication level.

bug #52626: Allow translation of theme labels at run time

Submitted by:  Martin Whitaker <martinwhitaker>
Submitted on:  Fri 08 Dec 2017 11:03:04 PM UTC  
Category:  User Interface Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Martin Whitaker
Open/Closed:  Open Release: 
Release:  Git master Reproducibility:  Every Time
Planned Release:  None

Fri 08 Dec 2017 11:03:04 PM UTC, original submission:

The existing behaviour is to only translate the template labels (e.g. "@KEYMAP_LONG@") when the theme configuration file is first read and to never translate ordinary labels. I am creating a bootloader for a Live DVD/USB which allows the user to select a different language in the boot menu, and hence want all text to be translated into the new language when it is selected.

The attached patch does the job. The only caveat is that it treats all labels in the theme as candidates for translation instead of requiring special syntax (e.g. $"...") as is required in other places. Personally, I don't see that as a problem - if the user has loaded the gettext module and set the $lang variable, then it can be presumed they want translations...

Martin Whitaker <martinwhitaker>


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by martinwhitaker (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-08 martinwhitaker Attached File- => Added 0001-Enable-run-time-translation-of-theme-labels.patch, #42607

    Back to the top

    Powered by Savane 3.4