340
Views
7
Comments
Solved
Multilanguage between modules
Question

Hi everyone,


I'm using multilanguage in one application. My problem is that I want to use it with some components that are in other module (core). I'm using multilanguage there too but how can I reflect that in the interface?


Thanks for your help!


Best regards,

Ricardo Pereira

2023-07-28 17-00-32
Marco Arede
 
MVP
Solution

Hi Ricardo,

OutSytems platform will display all interfaces with same multi-language definition, if this definition was specified during the user session.

Meaning that you can make any reference any module which contains the multi-language definition, and those language elements will be translated and displayed to user.

Just do not forget two things, firs to specify the definition of each element in the multi-language folder of interfaces, second to specify the user language by function SetCurrentLocale.

Regards,

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Ricardo,

I'm not sure I fully understand your question. Within a Session, the current locale (set by SetCurrentLocale() from System) determines which locale is used, if available in the module. All modules or apps the current Session is valid for use that locale.


2023-07-28 17-00-32
Marco Arede
 
MVP
Solution

Hi Ricardo,

OutSytems platform will display all interfaces with same multi-language definition, if this definition was specified during the user session.

Meaning that you can make any reference any module which contains the multi-language definition, and those language elements will be translated and displayed to user.

Just do not forget two things, firs to specify the definition of each element in the multi-language folder of interfaces, second to specify the user language by function SetCurrentLocale.

Regards,

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

Hi Kilian and Marco,


I will verify all that points and tell you later if the problem is solved.


Thank you both!


Cheers!

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

Hi Kilian and Marco,

I'd forget to specify the definition of the multi-language folder in core.


Thank you both!


Cheers,

Ricardo


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

You're most welcome :).

2022-09-14 15-31-13
Roberto García

Hi all, 

I have a reactive UI module that consumes services from a Core Service module with the multilingual component. As in reactive there is no session, how is the best way to make the core service know the locale? my first thought is to pass it as an optional parameter.

2011-08-23 22-04-05
Tiago Simões
Staff

Hi Roberto,

If you are using the multilingual component that is indeed an option. If you use the Technical Preview - Multilingual Reactive Web and Mobile Apps the locale will be kept between apps (similar to the user id) so you won't have to worry about it.

Cheers,
Tiago Simões

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.