URL: <http://savannah.gnu.org/bugs/?52626>
Summary: Allow translation of theme labels at run time Project: GNU GRUB Submitted by: 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 Originator Email: f...@martin-whitaker.me.uk Open/Closed: Open Discussion Lock: Any Release: Release: Git master Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: 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... _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 08 Dec 2017 11:03:04 PM UTC Name: 0001-Enable-run-time-translation-of-theme-labels.patch Size: 3KiB By: martinwhitaker Proposed fix <http://savannah.gnu.org/bugs/download.php?file_id=42607> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?52626> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub