[Bug 33447] Wine GUI on Mac display Traditional Chinese instead when host language is Simplify Chinese

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Apr 29 12:44:55 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=33447

--- Comment #16 from Qian Hong <fracting at gmail.com> 2013-04-29 12:44:55 CDT ---
Created attachment 44330
  --> http://bugs.winehq.org/attachment.cgi?id=44330
Patch: partial fix

Hi Ken,

Thanks a lot for your great analysis.
I found the multiple-Windows-locales-match issue is tricky, it seems there is
no really better way rather than some hardcode work. 

Rather than fix it completely right now, I'd like to send a partial fix first.
I'm attaching a patch which fix the case when user language setting is matching
with user region setting, but haven't fix the case when user language setting
is not matching with user region setting. This patch use the CoreFoundation API
CFLocaleCreateCanonicalLanguageIdentifierFromString which will automatically
convert 'zh_CN/zh_SG' to 'zh-Hans', convert 'zh_HK/zh_TW/zh_MO' to 'zh-Hant'.

I appreciate for any comments on it, if you don't object to it I'll send it to
wine-patch first, and leave this bug open until we have decide if hardcoding is
the right way for completely fix this bug.

Thanks a lot!

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list