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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
zaf's avatar
512
zaf
asked 12 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
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 (11 years ago)
see more comments