How do I translate Static Entities?
Harlin Setiadarma wrote:
Hi Harlin,
To have your static translated on the mobile side, you should create a local entity on the mobile side and include a second table to do the relationship between locales and your label translated. So, you can use these 2 tables to this this job.
Maybe I can translate it in synchronization logic to prevent having table join and add extra AO cost for new table.
Or I can add extra attribute in the static entity for translation key, and use GetTranslation in Dropdown expression.
Sure, This could be an option to safe extra AO. If you put a new extra attribute in static you will have only one option to translate. The synch logic could be more flexible, but notice when your user changes mobile language you need to trigger this synch again.
Hi there,
I have 2 strategies:
(1) fetch serer action using a structure and a mapping in the assign:
(2) client fetch with a calculated attribute like this:
Saludos,
Wilko
Hello,
Just to update this post, this is now supported Out Of Box by the OutSystems multilingual capabilities. One just need to be aware that the agregate that retrieves the static entity values has to be refresh after a setCurrentLocale is called to change the locale.
For more information please check the documentation: https://success.outsystems.com/Documentation/11_x_platform/Developing_an_Application/Design_UI/Multilingual_Reactive_Web_and_Mobile_Apps/Translate_your_app#working-with-static-entities