Hi,
I created a multilingual web application. Is there a way to change default locale to a language other than English?
Hi Yasser,
As far as I know, it is not possible to set the default locale at design time (in the ServiceStudio).
As an alternative, try to use the "OnBeginWebRequest" system event (right-click on "ServerActions" > "Add System Event"). There you can call the "SetCurrentLocale" system action to your default locale.
Does it work for you?
Regards,
António Pereira
António Pereira wrote:
Thanks Antonio. It works perfectly.
I have another question. What is the difference between OnBeginWebRequest and OnSessionStart?
There is (or at least there used to be) a way to "swap out" the language that an eSpace was written into a separate locale, while pulling in another of the languages into the module via some command line option.
I wonder if that is still there, and it it implicitly changes the default locale when the module loads?
Miguel
I've found a great documentation about those (and the other) systems events:
OnSessionStart -> https://www.outsystems.com/help/servicestudio/9.1/index.htm#t=Language_Reference%2FSystem_Events%2FOn_Session_Start_Action.htm
OnBeginWebRequest -> https://www.outsystems.com/help/servicestudio/9.1/index.htm#t=Language_Reference%2FSystem_Events%2FOnBeginWebRequest_Action.htm
All events -> https://www.outsystems.com/help/servicestudio/9.1/index.htm#t=Language_Reference%2FSystem_Events%2FOverview_of_System_Events.htm
(the documentation is for version 9.1 but works the same on 10)