Hi!
I'm using django-localeurl to support different languages using the URL to identify the language that must be used. Therefore, django-localeurl adds a prefix with the language code to each of my URLs (if it isn't the default language). So, I have this:
- mysite.com [index view, Spanish]
- mysite.com/en [index view, English]
- mysite.com/about [about view, Spanish]
- mysite.com/en/about [about view, English]
Problem is that I don't like having an "spanish URL" with the text "about", I would like to have something like:
- mysite.com/quienessomos [about view, Spanish]
- mysite.com/en/about [about view, English]
In my template I have:
<a href="{% url mysite.views.about %}">{% trans "quienes somos" %}</a>
(Note that trans tag is used to translate the anchor's text using django's i18n framework)
This is rendered always using "about" in the URL. How I could specify different URLs for each language?
Thanks in advance!