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 InterfaceSeverity: Major
Priority: 5 - NormalItem Group: Feature Request
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Martin Whitaker
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: 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
  • -unavailable- added by martinwhitaker (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Dec 2017 11:03:04 PM UTCmartinwhitakerAttached File-=>Added 0001-Enable-run-time-translation-of-theme-labels.patch, #42607

    Back to the top


    Powered by Savane 3.1-cleanup1