Bootloader installation and configuration |
modules/GfxMenu.ycp |
Routines to maintain translations in the graphical bootloader menu | |
|
|
This module has an unstable interface. |
Imports
Global Functions |
global
ReplaceRegexMatch (string input, string regex, string repl)
->
string
Replace every match of given regular expression in a string with a replacement string
e.g. ReplaceRegexMatch( "abcdef12ef34gh000", "[0-9]+", "_A_" ) -> "abcdef_A_ef_A_gh_A_"
- Parameters:
-
input string that may contain substrings matching regex regex regular expression to search for, must not contain brackets repl string that replaces every substring matching the regex
- Return value:
-
that has matches replaced
global
translateSectionTitle (string orig, string loader)
->
string
Create translated name of a section
- Parameters:
-
orig string original section name loader string bootloader type
- Return value:
-
translated section name
global
getTranslationsToDiacritics (string loader)
->
map<string,string>
Get translated section names, including diacritics
- Parameters:
-
loader string bootloader type
- Return value:
-
a map section names translations
global
UpdateGfxMenuContents (string loader)
->
boolean
Update graphical bootloader to contain translations for section labels in the currently selected installation language (set in /etc/sysconfig/language, RC_LANG) And make the selected installation language default
- Parameters:
-
loader string bootloader type
- Return value:
-
true on success
global
Update ()
->
boolean
Updates GFX menu without requiring any information, reads loader type from sysconfig, calls /sbin/lilo if LILO is being used directly
- Return value:
-
true on success