What is the point of NOT translating "month" to English?
There are several solutions:
1) Create custom templates / custom tags and include them based on
language. For example you may have "foo.nl.html" and "foo.en.html" and
include "foo..html". But I believe using different HTMLs for
different
Op 2015-03-03T17:41:21 UTC schreef Jaap van Wingerde
in the message ,
mid:20150303174121.024af...@jaap.custard.shrl.nl the following text.
> ../locale/en/LC_MESSAGES/django.po:
>
> ...
> #: template.html:4
> msgid "jaar"
> msgstr "year"
>
> #: templates.html:4
> msgid "maand"
> msgstr ""
> ...
../locale/en/LC_MESSAGES/django.po:
...
#: template.html:4
msgid "jaar"
msgstr "year"
#: templates.html:4
msgid "maand"
msgstr ""
...
../templates/template.html:
{% load i18n %}
...
{% trans "jaar" %}{% trans "maand" %}
...
resulting html:
...
yearmaand
...
better html:
...
yearmaand
...
3 matches
Mail list logo