Page 1 of 1

translation in DateTimePicker

Posted: Wed Jun 16, 2004 7:40 am
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

Posted: Thu Jun 17, 2004 5:00 am
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.

Posted: Thu Jun 17, 2004 10:21 am
by Volker
Thank you for your quick answer.
I'll try this soon.

Volker