How to change language based on users language.

0
How can i change the language of my application based on users selected language. For example, In my application i had 3users as ram,raj and ravi. ram’s language is english, raj’s language was dutch and another was french.How can i display my application with different language based on their language.when raj login to my application,the application will be in dutch.when ravi login to my application,the application language will be in french. please let me know about this.
asked
2 answers
3

See the following documentation on translations and language:

https://docs.mendix.com/refguide/translatable-texts

https://docs.mendix.com/refguide7/project-settings#5-1-default-language

A user(or account) is linked to a system.language entity. By settings this language after login the the user will see the application in its set language.

answered
0

You have to think seperately to text wich is generated programmatically and text on the ui (pages)

Programmatically;

- check in your microflow which language object is associated to user (via account) and generated the text based on that setting (or consider a tabel wherein you maintain your text for different languages, which can be retrieved in mf)

UI:

- You should have extended the project language settings with those languages

- choose a default language (this will change the text of all pages to the chosen language value)

- change the text of the page

- change the default language and update again the texts.

answered