Language |
modules/Language.ycp |
This module does all language related stuff: |
|
|
Imports
- AsciiFile
- Encoding
- Installation
- Misc
- Mode
- ProductFeatures
- XF86Path
Global Variables
Global Functions
Local Variables
Local Functions
|
|
|
global language -> string
|
|
currently selected language
user readable description of language
local default_language -> string
|
|
Default language to be restored with MakeProposal.
Default settings for ROOT_USES_LANG in /etc/sysconfig/language
local use_utf8 -> boolean
|
|
Use utf8 in locale
local get_languages_map () -> map<string, list>
|
|
Get the language DB
- Return value:
global Set (string lang) -> void
|
|
Set module to selected language.
- Parameters:
lang |
language string ISO code of language |
global SetDefault () -> void
|
|
Store current language as default language.
local get_lang2iso () -> map
|
|
Get the map for conversion of old lang codes to new ISO-codes
(since Rel. 8.0)
- Return value:
global Language () -> void
|
|
Constructor
Initializes module either from /etc/install.inf
or from /etc/sysconfig/language
global MakeProposal (boolean force_reset, boolean language_changed) -> string
|
|
Return proposal string.
- Parameters:
force_reset |
|
language_changed |
|
- Return value:
|
user readable description.
If force_reset is true reset the module to the language
stored in default_language. |
global Selection () -> map<string, list>
|
|
Return a map of ids and names to build up a selection list
for the user. The key is used later in the Set function
to select this language. The name is a translated string.
- Return value:
|
of $[ language : [ utf8-name, ascii-name] ...]
for all known languages
'language' is the (2 or 5 char) ISO language code.
'utf8-name' is a user-readable (UTF-8 encoded !) string.
'ascii-name' is an english (ascii encoded !) string. |
- See:
-
Save state to target.
global GetLanguageCountry () -> string
|
|
de_DE@UTF-8 -> "DE"
- Return value:
|