🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2840

Re: FormatDateTime in German ???

#2840
From: Remy Lebeau (TeamB)
Date: Thu, 30 Nov 2006 21:10
26 lines
1799 bytes
"Thom A." <thoma@gmx.at> wrote in message
news:456f3699@newsgroups.borland.com...

> Now I'd like to know, why FormatDateTime always returns
> the German abbreviation, no matter which computer on this
> planet it is called on.

'ddd' uses the global ShortDayNames array for the actual string values.
Those string values are initialized using LOCALE_SABBREVDAYNAME 1-7, falling
back to localized string resources if they are not available from the OS.

> On a US American machine with English Windows it always returns Do
> (Donnerstag) for Thursday!

The only way I can see that happening is if the OS does not provide any
string values, so the VCL falls back to its own resources, which are
compiled with German strings in the English stringtable.

> To be quick: I have NOT touched the ShortDateFormat or
> LOCALE_SSHORTDATE variables!

Those have nothing to do with this issue.


Gambit
Technical Details
Message-ID: <456f49fe$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <456f3699@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c8a645ba6a7f943e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <456f3699@newsgroups.borland.com>
Subject: Re: FormatDateTime in German ???
Date: Thu, 30 Nov 2006 13:10:54 -0800
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <456f49fe$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1164921342 69.169.4.232 (30 Nov 2006 13:15:42 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail