====== getLocalInfoMap.opsiinc ======
read info from local OS during installation, such as language ...
\\
Tested with opsi 4.0.4\\
requiredWinstVersion >= 4.11.2.\\
By //[[opsi@gei.de|GEI]] 2014/11/11 18:00//
placed in global library, such as %ScriptDrive$/lib ...
call with
include_insert %ScriptDrive%/lib/getlocalinfomap.opsiinc
=== ===
; This sourcecode is partly owned by uib.de ; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/
;
; written by GEI (Detlef Krummel opsi@gei.de)
; FILE "%ScriptDrive%\lib\getlocalinfomap.opsiinc"
requiredWinstVersion >="4.11.2"
; for debugging setLogLevel = 7
DefStringList $localInfoMap_List$
Set $localInfoMap_List$ = getLocaleInfoMap
setLogLevel = 5
; ------------------------ sample values ----------------------------------------------------------------------------------------
; 0)language_id_2chars=DE 1)language_id=DEU 2)localized_name_of_language=Deutsch (Deutschland)
; 3)English_name_of_language=German 4)abbreviated_language_name=DEU 5)native_name_of_language=Deutsch
; 6)country_code=49 7)localized_name_of_country=Deutschland 8)English_name_of_country=Germany
; 9)abbreviated_country_name=DEU 10)native_name_of_country=Deutschland 11)default_language_id=0407
; 12)default_language_id_decimal=1031 13)default_country_code=49 14)default_oem_code_page=850
; 15)default_ansi_code_page=1252 16)default_mac_code_page=10000 17)system_default_language_id=0407
; 18)system_default_posix=de_DE 19)system_default_lang_region=de-DE
DefVar $localInfoMap_LanguageId2Chars$
Set $localInfoMap_LanguageId2Chars$ = getValue("language_id_2chars", $localInfoMap_List$)
DefVar $localInfoMap_LanguageId$
Set $localInfoMap_LanguageId$ = getValue("language_id", $localInfoMap_List$)
DefVar $localInfoMap_LocalizedNameOfLanguage$
Set $localInfoMap_LocalizedNameOfLanguage$ = getValue( "localized_name_of_language", $localInfoMap_List$)
DefVar $localInfoMap_EnglishNameOfLanguage$
Set $localInfoMap_EnglishNameOfLanguage$ = getValue("English_name_of_language", $localInfoMap_List$)
DefVar $localInfoMap_AbbreviatedLanguageName$
Set $localInfoMap_AbbreviatedLanguageName$ = getValue("abbreviated_language_name", $localInfoMap_List$)
DefVar $localInfoMap_NativeNameOfLanguage$
Set $localInfoMap_NativeNameOfLanguage$ = getValue("native_name_of_language", $localInfoMap_List$)
DefVar $localInfoMap_CountryCode$
Set $localInfoMap_CountryCode$ = getValue("country_code", $localInfoMap_List$)
DefVar $localInfoMap_LocalizedNameOfCountry$
Set $localInfoMap_LocalizedNameOfCountry$ = getValue("localized_name_of_country", $localInfoMap_List$)
DefVar $localInfoMap_EnglishNameOfCountry$
Set $localInfoMap_EnglishNameOfCountry$ = getValue("English_name_of_country", $localInfoMap_List$)
DefVar $localInfoMap_AbbreviatedCountryName$
Set $localInfoMap_AbbreviatedCountryName$ = getValue("abbreviated_country_name", $localInfoMap_List$)
DefVar $localInfoMap_NativeNameOfCountry$
Set $localInfoMap_NativeNameOfCountry$ = getValue("native_name_of_country", $localInfoMap_List$)
DefVar $localInfoMap_DefaultLanguageId$
Set $localInfoMap_DefaultLanguageId$ = getValue("default_language_id", $localInfoMap_List$)
DefVar $localInfoMap_DefaultLanguageIdDecimal$
Set $localInfoMap_DefaultLanguageIdDecimal$ = getValue("default_language_id_decimal", $localInfoMap_List$)
DefVar $localInfoMap_DefaultCountryCode$
Set $localInfoMap_DefaultCountryCode$ = getValue("default_country_code", $localInfoMap_List$)
DefVar $localInfoMap_DefaultOemCodePage$
Set $localInfoMap_DefaultOemCodePage$ = getValue("default_oem_code_page", $localInfoMap_List$)
DefVar $localInfoMap_DefaultAnsiCodePage$
Set $localInfoMap_DefaultAnsiCodePage$ = getValue("default_ansi_code_page", $localInfoMap_List$)
DefVar $localInfoMap_DefaultMacCodePage$
Set $localInfoMap_DefaultMacCodePage$ = getValue("default_mac_code_page", $localInfoMap_List$)
DefVar $localInfoMap_SystemDefaultLanguageId$
Set $localInfoMap_SystemDefaultLanguageId$ = getValue("system_default_language_id", $localInfoMap_List$)
DefVar $localInfoMap_SystemDefaultPosix$
Set $localInfoMap_SystemDefaultPosix$ = getValue("system_default_posix", $localInfoMap_List$)
DefVar $localInfoMap_SystemDefaultLangRegion$
Set $localInfoMap_SystemDefaultLangRegion$ = getValue("system_default_lang_region", $localInfoMap_List$)