Saturday, June 2, 2012

Re: Internationalization in Django 1.4 doesn't seem to work

Hi Kenneth,

The good news is the problem is solved. A friendly chap in stackoverflow actually bothered to look into it.

The problem is as simple as the translation files couldn't be found.  For some odd reason the important information about how Django locates them is at the very last section of the documentation. It is really easy to miss.

All you have to do is to move the locale directory with the translation files into your Application directory. Thats it !!!

If you need to recreate the translation files you need top use the terminal, browse to the Application directory and run your command 'django-admin.py makemessages -l de' from there.  

You can't do this from Aptana Studio 3.0, since it requires you to run any Django command from the root rather than from application directory.  Hence you need to do it in the terminal.

Just download my test app and try what I just said here, as I intend to remove the test project within the next few days.

Regards,
Houman

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/RpGtuMns31oJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate