Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Date & Time Web part globalization View modes: 
User avatar
Member
Member
main-it - 3/4/2009 3:40:13 AM
   
Date & Time Web part globalization
Hi everyone,
is it possible to globalize the Date & Time web part?

When I place it on a page, it displays date and time in English language (Sunday, ..., January, ...). I would like to display days and months in user language.

I think I need to change the DateTime.js script but before doing so, I would like to know is someone else had the same problem and perhaps a solution ready to use.

Many thanks.
MRK

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/4/2009 4:26:49 AM
   
RE:Date & Time Web part globalization
Hello,

Have you tried to localize the resource strings?

Best Regards,
Boris Pocatko

User avatar
Member
Member
main-it - 3/4/2009 4:33:21 AM
   
RE:Date & Time Web part globalization
Hi Bory,
thank you for you answer.

Yes, I'm able to statically localize the resource strings but I need to display them in different languages (in a dynamic manner).

What I'm looking for is a language specific DateTime.js or a way to change the days/months names programmatically ...

MRK

User avatar
Member
Member
main-it - 3/4/2009 5:23:12 AM
   
RE:Date & Time Web part globalization
Hi Boris,
finally I found a good solution. I added a Java Script Web Part just after the Date & Time Web Part. In the inline script I placed the code to change the days+months names.

This solution does not requires modification to the original script avoiding future releases problems.

Thank you for your support.

MRK