[Grok-dev] Using locale.setlocale to force i18n translation

Sebastian Ware sebastian at urbantalk.se
Thu May 6 07:20:11 EDT 2010


How early do I have to call 

  locale.setlocale(locale.LC_ALL, 'en_GB')

in order for translations to take effect in page templates etc. Currently I am calling it from the update method. I can confirm that the locale is changed, but it doesn't seem to affect the language chosen by the i18n mechanism. Changing the preffered language in my system settings does have effect so I am sure I have set it all up correctly.

Any hints?

Mvh Sebastian
0707- 577 858

http://www.urbantalk.se






More information about the Grok-dev mailing list