132
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

mvp_badge
MVP
Rank: #158
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,

mvp_badge
MVP
Rank: #2

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.


mvp_badge
MVP
Rank: #158
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,

Champion
Rank: #99

Hi Kilian and Marco,


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


Thank you both!


Cheers!

Champion
Rank: #99

Hi Kilian and Marco,

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


Thank you both!


Cheers,

Ricardo


mvp_badge
MVP
Rank: #2

You're most welcome :).

Rank: #1523

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.

Staff
Rank: #20

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