setting language (for error messages)

25 views
Skip to first unread message

Patrick Kranzlmueller

unread,
May 18, 2013, 7:55:36 AM5/18/13
to django-res...@googlegroups.com
is there an easy way to set a different language for the API (compared with the rest of the site)?
because a) I want my API to be in english while the rest is in german and b) some error messages (e.g. date–field) do not seem to be translated at all ... and in order to avoid a language mix I'd prefer to stick with english.

any idea?

thanks,
patrick

Patrick Kranzlmueller

unread,
May 19, 2013, 4:35:35 AM5/19/13
to django-res...@googlegroups.com
for future reference:
this works with adding translation.activate("en") to initial of the view.

patrick
Reply all
Reply to author
Forward
0 new messages