Sunday, July 25, 2010

Re: Help with localization

I have L10n working, and the set up is almost the same.

I also have, in settings.py the following:

LOCALE_PATH = (
    os.path.join(PROJECT_DIR, "myapp/locale"),
    )

 
* locale/sk/LC_MESSAGES/django.po:
...
#: forms.py:7
msgid "Your name"
msgstr "Vaše meno"
...


Confirm which version of Django you are using? Also, confirm that you are using 
django-admin.py makemessages -l sk to create the po file?

 
* compiled into django.mo

and django-admin.py compilemessages to make the mo file?


* userproject/settings.py:
LANGUAGE_CODE = 'sk'

LANGUAGES = (
   ('en', 'English'),
   ('sk', 'Slovensky'),
)
USE_I18N = True
USE_L10N = True

Displayed form is in english. I tried to copy locale directory to all possible places (minicms, minicms/plugins, userproject, ...) but everything is only in english :(


Also, when developing, I find that Chromium (on Ubuntu 10.4) for instance, ignores all the localisation for the computer install default, whereas Firefox will obey the lang setting (edit->prefs->content->languages). Which is handy, because I'm monolingual - I can work in Chromium and test in Firefox.

Try the settings.py:LOCALE_PATH first and let us know. If that doesn't work, make sure you answer the other questions posed above.

cheers
L.
 

Lachlan Simpson
Technology Manager
Translation and Interpreting Studies
Monash University, Clayton
Victoria 3800

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment