translation in DateTimePicker

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Volker
Posts: 12
Joined: Wed Jun 16, 2004 7:34 am

translation in DateTimePicker

Post by Volker »

I try to internationalize my application and now I'm wondering if it is possible to translate the names of the month in DateTimePicker.
Can I use the Locale for that?
I'm new to delphi and SiComponents at all.
Any suggestions to solve my problem?

Thanks,
Volker
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

TDateTimePicker is just the wrapper of standard/native Windows control and takes the names for months and days from OS depending on user locale. And this drives to imposibility of its translation. But there is available RX Library components on the Web, which include TDateEdit component with quite the same and sometimes extended functionality than TDateTimePicker. And this component takes values fro months and days from Delphi's locales variables such as LongMonthNames and ShortDayNames, which could be easily translated by TsiLang using Locales property and ChangingLocales property set to True.
Hope this helps.
Volker
Posts: 12
Joined: Wed Jun 16, 2004 7:34 am

Post by Volker »

Thank you for your quick answer.
I'll try this soon.

Volker
Post Reply