How can I set the user language at runtime?

asked 29.10.2013 at 16:53

jschori's gravatar image

jschori
(suspended)
accept rate: 100%

edited 30.10.2013 at 10:48

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


The language is normally determined by the browser settings of a user. This language can be overridden by changing the locale of the session. See the public API reference: ISession#setContentLocale(java.util.Locale)

to modify the task e-mail content language, there is another API: IUser#setEMailLanguage(java.util.Locale)

link

answered 30.10.2013 at 10:59

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 30.10.2013 at 11:00

Don't forget to set the formatting locale:

ivy.session.setContentLocale(in.language, in.language);
ivy.session.setFormattingLocale(in.language, in.language);

Whereas in.language is two or three digit (not sure) ISO-Code.

link

answered 04.11.2013 at 12:02

Nikel%20Weis's gravatar image

Nikel Weis
(suspended)
accept rate: 57%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37

Asked: 29.10.2013 at 16:53

Seen: 3,126 times

Last updated: 04.11.2013 at 12:02