Bugzilla – Attachment 249088 Details for
Bug 439822
script for gathering country specific data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
ycp script
locale.ycp (text/plain), 1.18 KB, created by
Jiří Suchomel
on 2008-10-31 10:48:13 UTC
(
hide
)
Description:
ycp script
Filename:
MIME Type:
Creator:
Jiří Suchomel
Created:
2008-10-31 10:48:13 UTC
Size:
1.18 KB
patch
obsolete
>{ > import "Language"; > import "Keyboard"; > import "Console"; > > map<string, list> langs = Language::GetLanguagesMap (true); > > map consolefonts = (map)SCR::Read (.target.yast2, "consolefonts.ycp"); > > string dir = "/tmp/locale-settings/"; > > foreach (string lang, list ll, langs, { > > string suffix = ll[2]:""; > string fqlanguage = lang + suffix; > > string kbd = Keyboard::GetKeyboardForLanguage (lang, "us"); > > // does not really set keyboard, only fills some data > Keyboard::SetKeyboard (kbd); > > string yast_kbd = kbd + "," + Keyboard::kb_model; > > list consolefont=consolefonts[fqlanguage]:consolefonts[lang]:[]; > string font = consolefont[0]:""; > string unicodeMap = consolefont[1]:""; > string screenMap = consolefont[2]:""; > string magic = consolefont[3]:""; > > string contents = sformat ("RC_LANG: %1 >CONSOLE_FONT: %2 >CONSOLE_SCREENMAP: %3 >CONSOLE_UNICODEMAP: %4 >CONSOLE_MAGIC: %5 >KEYTABLE: %6 >YAST_KEYBOARD: %7 >COMPOSETABLE: %8", > fqlanguage, font, unicodeMap, screenMap, magic, > Keyboard::keymap, yast_kbd, Keyboard::compose_table); > > if (lang == "zh_HK") > contents = contents + "\nRC_LC_MESSAGES: zh_TW.UTF-8"; > > > SCR::Write (.target.string, dir + fqlanguage, contents); > }); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 439822
: 249088