I am trying to set up a multi-language django site, I have added the languages I need in my settings file and translated everything in my django.po file. I added the locale middleware and language blocks to my urls and they display correctly when I navigate through them:
/es-mx/help --- displays in spanish
/en-us/help --- displays in english
Now I want to translate the urls, this is my urls.py:
from django.utils.translation import ugettext_lazy as _
urlpatterns += i18n_patterns('',
url(_(r'^help/'), include('help.urls')),
)
I want to have the following:
/es-mx/ayuda -- displays in spanish
/en-us/help --- displays in english
But I only get 404s when going to the spanish url. I have tried adding the following in my django.po file with no results:
msgid "r^help/"
msgstr "r^ayuda/"
msgid "help"
msgstr "ayuda"
What am I missing?