Article View: borland.public.cppbuilder.nativeapi
Article #13667Re: LoadString and default stringtable
From: Bob Gonder
Date: Tue, 23 Sep 2003 16:34
Date: Tue, 23 Sep 2003 16:34
38 lines
2843 bytes
2843 bytes
Thorsten Kettner wrote: >Windows setting: LoadString result: >German/Germany LANG_GERMAN, SUBLANG_GERMAN >German/Austria LANG_GERMAN, SUBLANG_NEUTRAL >English/UK LANG_ENGLISH, SUBLANG_NEUTRAL >English/USA LANG_ENGLISH, SUBLANG_NEUTRAL >French/France LANG_GERMAN, SUBLANG_GERMAN > >You see everything works fine, except for the unknown language >(French in this case). Seeing that it defaults to German/Germany >I thought this is because my computer is German. So I deleted >the rc entries LANG_GERMAN, SUBLANG_GERMAN and LANG_GERMAN, >SUBLANG_NEUTRAL. But then I got LANG_ENGLISH, SUBLANG_NEUTRAL >for French! This shows LANG_NEUTRAL, SUBLANG_DEFAULT is just >not the correct entry for a default, but has some other meaning. >But there must be a default setting! It cannot be that French >people get a random language! Nifty! Did not know that. Maybe _anything_ (or at least German or English) is preferable to Neutral. Test (#1) if there were only 2 choices, Neutral or Chinese? If French picks Chinese over Neutral, then?? I would think German and English would act the same as French in this test. Test (#2) if Neutral had SUBLANG_SYS_DEFAULT? No, probably not, as that is German in your case and you're looking for French. But, if you had a French system, then it might match. Hmmm...If Test#1 fails, then try it with this way against German to see if it picks Chinese or SYS. If test #2 works, then your app will pick the matching supplied language, or the Neutral if/onlyif user==system language. Otherwise, it looks like it picks the first non-neutral language. So, for example, you could setup Chinese as your first (default) language. (Well, maybe not Chinese, as that's likely wide char only.)
Technical Details
Message-ID:
<tmr0nv4q2s5in2o7dr40kp2s97rg1gh4bn@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f6ef786@newsgroups.borland.com> <3f6ff164@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4daae65cffc0dd68 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-23 09:40:04 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: LoadString and default stringtable Date: Tue, 23 Sep 2003 09:34:05 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <tmr0nv4q2s5in2o7dr40kp2s97rg1gh4bn@4ax.com> References: <3f6ef786@newsgroups.borland.com> <3f6ff164@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.165.112 X-Trace: newsgroups.borland.com 1064334885 67.31.165.112 (23 Sep 2003 09:34:45 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail