On Sun, Feb 26, 2012 at 2:22 PM, nicolas HERSOG <n.her...@gmail.com> wrote: > 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 ? >
{% load i18n %} at the top of your template file? > 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.