I am not sure my first reply worked, but here it goes again.
Your template is using {{ post.NAME }} when I believe it should be using {{
customer.NAME }}. The context name that is used in the template is
obtained by default from the model and in your case, you are using model=
Customer. If you
My recent experience with using django-admin.py makemessages is that this
command only works when there is a subdirectory present named 'locale' that
sits just below where you are executing this command. Without a 'locale'
subdirectory present, the command will raise an error. I think by desig
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
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.
>
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 the
I am stumped. I am not sure how to approach this. I think its best if I
describe what I would like to happen then I would greatly appreciate some
recommendations.
*Imagine this...*
You go to www.mysite.com and you are presented solely with two buttons(and
nothing else): [Enter in English] | [
>
> Resolved. The solution was staring right at me (0^0) the whole time n the
> template language. I figured it out upon reading further down on the
> documents.
>
https://docs.djangoproject.com/en/1.6/topics/i18n/translation/#miscellaneous
--
You received this message because you are sub
7 matches
Mail list logo