Artifacts Associated With Ticket 3036566fffffffffffffffffffffffffffffffff
Ticket change [802de5eda0] (rid 97690) by patthoyts on 2010-07-29 12:33:03:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On Windows 7 and possibly Vista the user can now install language packs for certain versions. This is available for Windows 7 Ultimate and Professional but not for the Home versions I believe. This means I can install a Japanese UI language pack and use the control panel to select Japanese as my UI language even though the system locale was English. Tcl's msgcat package ignores this. The current code examines the Control Panel\International registry and determines the system locale. However the UI locale is being stored in Control Panel\Desktop\PreferredUILanguages as a country-language code (eg: ja-JP for Japanese). The name of the value suggests it might become a list but I don't know what separator might get used. Attached is a patch to look for this registry value and use it if possible to override the system language. This patch is against 8.5.8 (msgcat 1.4.3)
- foundin initialized to: "obsolete: 8.5.8"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "patthoyts"
- subsystem initialized to: "30. msgcat Package"
- title initialized to: "msgcat ignores UI language setting on Windows 7"
- type initialized to: "Bug"
Ticket change [eaed7a90c1] (rid 103447) by patthoyts on 2010-07-29 19:33:04:
- icomment:
File Added - 381602: msgcat.patch
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Add attachment "msgcat.patch" [f0852e36a8] (rid 109207) by patthoyts on 2010-07-29 19:33:04.
Ticket change [d8ad16a8ef] (rid 107481) by patthoyts on 2010-08-24 23:29:24:
- icomment:
In reality we should probably somehow be calling GetUserDefaultUILanguage() (available since Win2k). Need to confirm this on some multilingual systems.
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [9b563a9677] (rid 111102) by anonymous on 2010-11-01 17:32:53:
- icomment:
Notice that the 'Locale' word is completely different on Windows (7 at least). It refers strictly to the 'programs that don't have unicode default method' which is completely unrelated to any 'language display' feature. Basically they have: Locale = unrelated to language display, just for printing characters. Location = unrelated to language display, just for using currencies, time etc. Display Language (which can be updated with packages to others) - The only one apparently on settings that actually refers to displaying a language for the system.
- login: ""
- mimetype: "text/plain"
- username: ""
- icomment:
Ticket change [6694349741] (rid 102738) by dgp on 2012-06-23 03:42:05:
- assignee changed to: "oehhar"
Ticket change [31df3cd50c] (rid 93511) by anonymous on 2013-05-08 01:13:09:
- icomment:
I can confirm GetUserDefaultUILanguage() returns right UI language on my English Windows 8 with English UI language, Russian regional settings and Russian "locale for non-unicode programs". msgcat incorrectly gets Russian. % package require twapi 4.0a17 % twapi::map_langid_to_name [twapi::get_user_ui_langid] English (United States) % package require msgcat 1.5.0 % msgcat::mcpreferences ru_ru ru {} - login: ""
- mimetype: "text/plain"
- username: ""
- icomment:
Ticket change [1254d2e333] (rid 95286) by oehhar on 2013-05-08 15:44:59:
- icomment:
Sorry, I missed this bug report. Here is my proposed patch with current tcl86.0. http://core.tcl.tk/tcl/timeline?r=bug3036566 To test it on tcl8.5.x, you may just take the msgcat folder and copy it to this version. On my Vista, this registry key is not present. Could you please check, if it works for you ? Any other comments welcome. Sorry, Harald
- login: "oehhar"
- mimetype: "text/plain"
- username: "oehhar"
- icomment:
Ticket change [b0c34e847a] (rid 133944) by oehhar on 2013-09-17 07:09:26:
- closedate changed to: "2456552.79822441"
- closer changed to: "oehhar"
- comment changed to:
On Windows 7 and possibly Vista the user can now install language packs for certain versions. This is available for Windows 7 Ultimate and Professional but not for the Home versions I believe. This means I can install a Japanese UI language pack and use the control panel to select Japanese as my UI language even though the system locale was English. Tcl's msgcat package ignores this. The current code examines the Control Panel\International registry and determines the system locale. However the UI locale is being stored in Control Panel\Desktop\PreferredUILanguages as a country-language code (eg: ja-JP for Japanese). The name of the value suggests it might become a list but I don't know what separator might get used. Attached is a patch to look for this registry value and use it if possible to override the system language. This patch is against 8.5.8 (msgcat 1.4.3)
- icomment:
Included in msgcat 1.5.2 and shipped with tcl 8.5.15 and 8.6.1 Thank you all, Harald
- login: "oehhar"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- severity changed to: "Minor"
- status changed to: "Closed"
- username: "oehhar"