🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #190

Is it possible to determine the user's language?

#190
From: Todd
Date: Fri, 21 Jul 2006 14:27
19 lines
1809 bytes
I have an application that is used internationally - stuff like 
date/time/decimals is not used.

What I need is a way to determine if the system the application is running 
on, is such that it's language requires unicode - i.e. 0xC3D3;  characters.
All I want is a boolean value - to be able to make visible or hide menu 
options for countries having wider characters.

I see all kinds of stuff like TSysLocale - but no information on how to use 
it.  And a lot of functions for getting settings for foriegn settings - but 
none for getting the users settings.

I have, long ago polled the Registry to get the language - but I am 
wondering if there is a function built-in to Builder 5 to get this 
information - especially since I do not need to actually know the language - 
just need to know the character width.

Thank,
Todd
Technical Details
Message-ID: <44c0e45d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,c8311670a1435d97,start
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Todd" <minnetonkavoyager@yahoo.com>
Newsgroups: borland.public.cppbuilder.internationalization
Subject: Is it possible to determine the user's language?
Date: Fri, 21 Jul 2006 09:27:47 -0500
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 67.110.62.83
Message-ID: <44c0e45d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1153492061 67.110.62.83 (21 Jul 2006 07:27:41 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail