Add Django-localeurl to the translation/i18n documentation
|Reported by:||vizualbod||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
http://code.google.com/p/django-localeurl/ should really be included in the translation documentation. I was very fortunate to digg it with great help of folks on IRC:
Suppose you have a Django website in multiple languages. The localeurl application http://code.google.com/p/django-localeurl/ allow you to specify the language of a page in the URL, like so: http://www.example.com/nl/company/profile. Any URLs without language prefix will be redirected to add the prefix for the default language.
Some reasons for using localeurl:
- Search engines will index all languages.
- Every page should have a unique URL. If you feel that different languages means different pages, then each language should get its own unique URL.
- Setting the language for the website should be done using a POST request (because it influences subsequent page views, see Django ticket #3651). You might not want to use POST requests.