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
Original issue reported on code.google.com by
alass...@gmail.com
on 13 Dec 2010 at 5:19