First time here? Check out the FAQ!
2

Format Localization and Time Zone settings

Happy 1st May everyone!

I want to set up dates and times in askbot, so that they appear in a format/language familiar to my users. I see here how I can play with the formats. What I don't see is how to localize these formats? Most of my users will not be english people, so for example, when %b format used (like in Apr 30), I don't want the word Apr to appear, but Απρ, which is the greek translation.

Do you know if django has any solution to this?

Also, I was reading this and this django docs and I was wondering if Askbot's current version supports these, so that users are able to see the same data but in different format, according to their timezone and locale. And if it's not supported, is there any future plans about these?

zaf's avatar
512
zaf
asked 2012-05-01 08:26:12 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

The date/time localization is a feature of Python. http://docs.python.org/library/locale.html

It has not yet been used in askbot.

Evgeny's avatar
13.2k
Evgeny
answered 2012-05-01 09:07:40 -0500
edit flag offensive 0 remove flag delete link

Comments

Speaking of time zones, when I submit this comment I have a bad feeling that it's going to say 1 hour ago. (OK, it didn't, there must be a bug in the askbot instance I was using.)

Neil's avatar Neil (2014-03-14 17:48:17 -0500) edit
add a comment see more comments