Article View: borland.public.cppbuilder.internationalization
Article #823Re: Netherlands Support
From: Khai Trinh
Date: Mon, 03 Jun 2002 15:05
Date: Mon, 03 Jun 2002 15:05
44 lines
2636 bytes
2636 bytes
Thank you Mark and Edward,
As a way of determing what the locale environment is, I used this code to return information. From this I can tell whether the locale is Netherlands or English and proceed accordingly.
void __fastcall TLocale::Button1Click(TObject *Sender)
{
AnsiString WinLocale;
WinLocale = setlocale( LC_COLLATE, "" );
Edit1->Text = WinLocale;
}
Is this the normal way or is there a "best practice" way of determing what the locale is?
Regards,
Khai
"Mark Finkle" <mark_finkle@hotmail.com> wrote:
>Khai,
>
>Builder does have global variables for ShortDateFormat, LongDateFormat and
>currency/number stuff. Look in the help for ShortDateFormat, it should give
>you a list of the variables and where their values come from.
>
>Mark
>
>"Newbie" <khaitrinh@ureach.com> wrote in message news:3cf513d0$1_1@dnews...
>>
>> I just started supporting a project that uses Borland C++ Builder 5,
>Enterprise Suite. I know some C++ but am new to Borland and
>internationalization. I am also new to this company and all the developers
>have left. We have an application in English and we need to support the
>Netherland by the next two months. Our main concern is the date format
>differences between US and the Netherlands. Our format is mm/dd/yyyy where
>as the Netherlands uses dd/mm/yyyy. What is the best approach to handle
>this in Borland Builder? Is there any global regional setting from Windows
>that Borland can access to tell me whether it's a Netherlands installed or
>US installed so I can proceed accordingly? Any help is greatly appreciated.
>>
>> Thanks,
>> Khai
>
>
Technical Details
Message-ID:
<3cfb85be$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3cf513d0$1_1@dnews> <3cf53867_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,1be201ed8f633848 X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2002-06-03 08:10:32 PST From: "Khai Trinh" <khaitrinh@ureach.com> Sender: "Khai Trinh" <khaitrinh@ureach.com> Reply-To: "Khai Trinh" <khaitrinh@ureach.com> Subject: Re: Netherlands Support Newsgroups: borland.public.cppbuilder.internationalization X-User-Info: 192.31.174.30 192.31.174.30 References: <3cf513d0$1_1@dnews> <3cf53867_1@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3cfb85be$1_2@dnews> Date: 3 Jun 2002 08:05:34 -0700 X-Trace: dnews 1023116734 207.105.83.65 (3 Jun 2002 08:05:34 -0700) Lines: 45 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews