This module does all language related stuff:
List of Global Functions
CJKLanguage - Check if the language is "CJK" (and thus could not be shown in text mode - see bug #102958)
Export - AutoYaST interface function: Return the Language configuration as a map.
GetExpertValues - GetExpertValues()
GetGivenLanguageCountry - de_DE@UTF-8 -> "DE"
GetLanguageCountry - de_DE@UTF-8 -> "DE"
GetLocaleString - generate the whole locale string for given language according to DB (e.g. de_DE -> de_DE.UTF-8)
GetLocales - return the map of all supported countries and language codes
GetName - return user readable description of language
GetTextMode - return the value of text_mode (true for ncurses)
Import - AutoYaST interface function: Get the Language configuration from a map.
IncompleteTranslation - Returns true if translation for given language is not complete
Language - Constructor
MakeProposal - Return proposal string.
MakeSimpleProposal - Return 'simple' proposal string.
Modified - was anything modified?
PackagesCommit - Install and uninstall packages selected by Pkg::SetAdditionalLocales
PackagesInit - Initializes source and target, computes the packages necessary to install and uninstall, checks for disk space (#50745)
Read - Store the inital values; in normal mode, read from system was done in constructor
ReadSysconfigLanguage - Read the RC_LANG value from sysconfig and exctract language from it
ReadSysconfigValues - Read the rest of language values from sysconfig
Save - Save state to target.
Selection - 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.
Set - Set module to selected language.
SetDefault - Store current language as default language.
SetExpertValues - SetExpertValues()
Summary - AutoYaST interface function: Return the summary of Language configuration as a map.
WfmSetGivenLanguage - WfmSetLanguag()
WfmSetLanguage - WfmSetLanguag()
List of Global Variables
language - currently selected language
language_on_entry - original language
languages - Default settings for INSTALLED_LANGUAGES in /etc/sysconfig/language
languages_on_entry - Original value of INSTALLED_LANGUAGES
preselected - language preselected in /etc/install.inf
Check if the language is "CJK" (and thus could not be shown in text mode - see bug #102958)
Function parameters
string lang
Return value
boolean
AutoYaST interface function: Return the Language configuration as a map.
Return value
map - with the settings
de_DE@UTF-8 -> "DE"
Function parameters
string lang
Return value
string - country part of language
generate the whole locale string for given language according to DB (e.g. de_DE -> de_DE.UTF-8)
Function parameters
string lang
Return value
string
return the map of all supported countries and language codes
Return value
map<string,integer>
AutoYaST interface function: Get the Language configuration from a map.
Function parameters
map settings
Return value
boolean - success
Returns true if translation for given language is not complete
Function parameters
string lang
Return value
boolean
Return proposal string.
Function parameters
boolean force_reset
boolean language_changed
Return value
list<string> - user readable description. If force_reset is true reset the module to the language stored in default_language.
Return 'simple' proposal string.
Return value
string - preformated description.
Install and uninstall packages selected by Pkg::SetAdditionalLocales
Return value
boolean
Initializes source and target, computes the packages necessary to install and uninstall, checks for disk space (#50745)
Function parameters
list<string> selected_languages
Return value
boolean - false when there is not enough disk space for new packages
Store the inital values; in normal mode, read from system was done in constructor
Function parameters
boolean really
Return value
boolean
Read the RC_LANG value from sysconfig and exctract language from it
Return value
string - language
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
map<string, list> - 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.
AutoYaST interface function: Return the summary of Language configuration as a map.
Return value
string - summary string