Hello fellows.
I'm using Django 1.1 version. My goals is create multiple language site.
I make po file
myprojectname/conf/locale/mn/LC_MESSAGES/django.po
and some msgid, msgstr.
But it's don't work.
My index.html
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
<form action="/i18n/setlang/" method="post">
<input name="next" type="hidden" value="/products" />
<select name="language">
{% for lang in LANGUAGES %}
<option value="{{ lang.0 }}"
{% ifequal request.LANGUAGE_CODE lang.0 %}
selected
{% endifequal %}>
{{ lang.1 }}</option>
{% endfor %}
</select>
<input type="submit" value="Go" />
</form>
<p>
{% trans "current language" %}: {{ request.LANGUAGE_CODE }}</p>
My urls.py
(r'^i18n/', include('django.conf.urls.i18n')),
Thanks.
Tsolmon
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.