diff --git a/geo_easy.msk b/geo_easy.msk index 6b50795d..f5e08b08 100644 --- a/geo_easy.msk +++ b/geo_easy.msk @@ -1,6 +1,6 @@ -# GUI language -global geoLang -set geoLang {hun} +# GUI language uncomment next two lines to set GUI language other than OS lang +#global geoLang +#set geoLang {eng} # code page global geoCp # set geoCp {cp-1250} diff --git a/geo_easy.tcl b/geo_easy.tcl index c7fd4e32..5447775f 100755 --- a/geo_easy.tcl +++ b/geo_easy.tcl @@ -54,8 +54,8 @@ proc GeoEasy {top} { global fn global version - set version 300 ;# title string too !!!! - set geoEasyMsg(mainTitle) "GeoEasy 3.0.0" ;# version variable too !!!! + set version 301 ;# title string too !!!! + set geoEasyMsg(mainTitle) "GeoEasy 3.0.1" ;# version variable too !!!! # check conditions for geo and coo data # each record must have point number set geoMustHave {2 5 62} @@ -142,14 +142,14 @@ proc GeoEasy {top} { if {$tcl_platform(platform) != "unix"} { set ww "" catch {set ww [registry get HKEY_LOCAL_MACHINE\\SYSTEM\\CONTROLSET001\\control\\nls\\language InstallLanguage]} - switch -exact $ww { + switch -exact [string toupper $ww] { "040E" { set w "hu"} "0409" { set w "en"} "0407" { set w "de"} default { set w "en"} } } else { - catch {set w [string tolower $env(LANG)]} + catch {set w [string range [string tolower $env(LANG)] 0 2]} } if {! [info exists geoLang] || \ [lsearch -exact {hun eng ger} $geoLang] == -1} {