django internationalization and translations problem

Posted by Zayatzz on Stack Overflow See other posts from Stack Overflow or by Zayatzz
Published on 2010-04-14T17:30:50Z Indexed on 2010/04/14 19:23 UTC
Read the original article Hit count: 362

I have a problem with django translations.

Problem 1 - i updated string in django.po file, but the change does not appear on the webpage.

Problem 2 - i have created my own locale file with django-admin.py makemessages -l et, added the translation string into file, but they too do not appear on the page.

I do not think this is setting problem, because the translations from django.po file do appear on the website, its just the changes and the translations from my own generated file that do not appear.

Edit: My settings.py contains this:

gettext = lambda s: s
LANGUAGE_CODE = 'et'

LANGUAGES = (
             ('et', gettext('Estonian')),
             )

my own locale files are in

/path/to/project/locale/et/LC_MESSAGES/

and the files are

django.mo and django.po

the file i refer to in problem 1 is django own et transaltion, which i changed.

© Stack Overflow or respective owner

Related posts about django

Related posts about internationalization