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
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'
>
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
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
4 matches
Mail list logo