Hello, how is the rule which language has the system session ? Can we set the langauge of system session for the whole application ?

Thanks

Karel

asked 07.10.2016 at 13:50

tauser's gravatar image

tauser
(suspended)
accept rate: 33%

edited 07.10.2016 at 14:12


The locale of an ivy session is determined as follows. The first defined locale wins - top down. E.g. if browser language is set, the client OS is ignored:

  1. request
  2. override
  3. ivy (designer simulation settings)
  4. browser
  5. client OS

For the system session you should be able to refine the locale by using the API that will influence the 'override' locale:

ISession system = ivy.session.getSecurityContext().getSystemUserSession();
system.setFormattingLocale(java.util.Locale.ITALIAN);
system.setContentLocale(java.util.Locale.ITALIAN);

Be aware that you need some maintenance code set these Locales after an engine reboot.

Anyway, what is your use case to refine the system users language? Are you trying to influence the language within Task-Mails? If so, consider to use Axon.ivy 6.4 which will be available around the end of October. We've introduced API to load CMS contents in E-Mail steps with a given language: <%=ivy.cms.coLocale("myContent/uri", "de_DE") %>

link

answered 10.10.2016 at 12:21

Reguel%20Wermelinger's gravatar image

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

edited 10.10.2016 at 12:24

task names are stored fix in system database with language of session by task creation. (the trigerred task with system session). We would like to control the language used for the task names (from CMS)

(10.10.2016 at 14:51) tauser tauser's gravatar image

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:

×14

Asked: 07.10.2016 at 13:50

Seen: 2,472 times

Last updated: 10.10.2016 at 14:58