djangosnippets.org: Latest snippets tagged with 'il8n'https://djangosnippets.org/tags/il8n/2007-02-25T14:04:28.465751-06:00Localized URLs (www-en)
2007-02-25T14:04:28.465751-06:00zeeghttps://djangosnippets.org/snippets/5/<p>An example on how we changed our localization middleware to use www-en.<domain> instead of it being hidden in the cookie.</p>
<p>This also changes zh-cn to cn, and zh-tw to tw in the URLs.</p>
<p>This is only a base snippet and you will most likely need to modify it to fit …</p>
Freely redistributable