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

Submitter:  Martin Whitaker <martinwhitaker>
Submitted:  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:  Git master
Release:  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>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    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.12.
    Corresponding source code