How to change a language's label in Django language specific URLs using i18n_patterns?
20 views
Skip to first unread message
Rodrigo Cea
unread,
Jan 6, 2017, 2:34:46 PM1/6/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I'm using Django's i18n_patterns, so my URLs look like www.domain.com/pt/title. I want to change the language code in the URL to a different string, say, for example 'br' instead of 'pt', so the same url above would be rendered www.domain.com/br/title. I only want to change the language's label, not the actual translation.