Sunday, February 26, 2012

internationalization makemessage don't work

Hi folks !

I'm trying for hours to internationalize my django website.

I added to my settings.py this few lines :

TIME_ZONE = 'Europe/Paris'
LANGUAGE_CODE = 'fr-FR'

I added to all templates i want to translate the tag trans for the sentence I want to  internationalize exemple :
{% trans "article écrit :"%} 
{% trans "Nom :"%} 

And then at my root project i run django-admin.py makemessages -l en

This command created a django.po file which contains the translations key for django debug tool bar, but none key of my webapp.

Did I do something wrong, or miss something ?

Thank you :)

Nicolas



--
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