Re: django ugettext translation glitch or as designed?

2014-05-30 Thread visionary800
Thank you Ramiro! That was it - I changed to ugettext_lazy() and it worked! I want to separate the text from the templates - this is why I want to place the text in a separate file. Placing the text within the template is a d What approach should I take to just separate the text from from

Re: django ugettext translation glitch or as designed?

2014-05-30 Thread Ramiro Morales
On Fri, May 30, 2014 at 10:51 PM, visionary800 wrote: > Bad: 2 - This Fails: when ugettext is in another file > file : /project/app/views.py > > ...other imports > from .mytext import FROM_ANOTHER_FILE > > class BaseView(ContextMixin, View): > template = 'base.html' >

Re: django ugettext translation glitch or as designed?

2014-05-30 Thread visionary800
Sorry for the large text... I forget to change it - I guess I am going blind :-) On Friday, May 30, 2014 6:51:35 PM UTC-7, visionary800 wrote: > > I am running into a challenge. For both examples below everything is good > except when I move the ugettext() to a separate file. > Good: After

django ugettext translation glitch or as designed?

2014-05-30 Thread visionary800
I am running into a challenge. For both examples below everything is good except when I move the ugettext() to a separate file. Good: After running the django-admin.py makemessages -l es, both examples produce the appropriate .po file. Good: I change ../locale/es/LC_MESSAGES/django.po