First time here? Check out the FAQ!

Revision history  [back]

LANGUAGE_CODE not applied to commands

I have a translated site where the URL for questions is translated. When I use question.get_absolute_url() within the askbot application, everything works well.

However, if I use it within a command invoked with, the URL returned is the one for english.

Using the translation.get_language() call, the language is set to 'en-us', even though my is different. The django settings.LANGUAGE_CODE is correct.