[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #52626] Allow translation of theme labels at run time
From: |
Martin Whitaker |
Subject: |
[bug #52626] Allow translation of theme labels at run time |
Date: |
Fri, 8 Dec 2017 18:03:06 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 Lightning/5.1 Lightning/5.3b2 |
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: address@hidden
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #52626] Allow translation of theme labels at run time,
Martin Whitaker <=