buxeasywork / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

Adopting RESTful URL structure in Rosetta #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the URL structure of Rosetta is not very RESTful. The home() view 
could be editing any language, or just a list of all languages.

The second use should be a 302 redirection to /pick/, or perhaps something more 
descriptive like /select_language/.

For editing, the language code and project/app name should be part of the URL, 
e.g. /rosetta/en/project/app/. This allows translators to bookmark the page or 
pass around URLs more easily, and reduces the chance for a mistake if a 
translator handles more than one language.

The name of .po files (gettext domain) should probably be in the url as well. 
This would allow more complex setup where translations are not made by django, 
so the file might not always be named "django.po".

With the above changes it should be possible to infer .po file path instead of 
storing them in a session.

Rick

Original issue reported on code.google.com by alass...@gmail.com on 13 Dec 2010 at 5:19

GoogleCodeExporter commented 9 years ago

Original comment by mbonetti on 16 Feb 2011 at 3:32

GoogleCodeExporter commented 9 years ago
this is a highly anticipated feature. please do it ASAP!

thx,
mfittko

Original comment by mfit...@gmail.com on 7 Apr 2011 at 12:52