On Feb 11, 1:38 pm, Ramiro Morales <cra...@gmail.com> wrote: > On Wed, Feb 11, 2009 at 11:22 AM, Joshua Russo <joshua.rupp...@gmail.com> > wrote: > > > I'm developing an app and want to use Portuguese characters in the > > verbose field names for my models. The tables were created fine but > > when I tried to implement the admin pages I received a > > DjangoUnicodeDecodeError when it hit the first non-ASCII character. Is > > this just a bug with the admin page processing? > > No, Django and its admin app supports internationalization. > > Don't forget to specify the encoding of your Python source code files > (models.py in this case) as described > athttp://www.python.org/dev/peps/pep-0263/ > > Also, make your to wrap your Portuguese literals with a call to the > django.utils.translation.ugettext_lazy() function as described in the > Django I18n documentation: > > http://docs.djangoproject.com/en/dev/topics/i18n/#lazy-translation > > Regards, > > -- > Ramiro Morales
Ramiro, I don't need the I18n functionality. The app is just an internal one and so will only be in Portuguese. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---