Dear all,
I am currently using the b2019040718 release.
what about the translation feature in Perspective? Are there news about this topic?
The translation feature is a key point to widely deploy our applications.
Right now there is fundamental support for translations in Perspective, but they aren’t quite useful yet (currently only supported by Buttons and Labels). I’ve added a ticket to prioritize the rollout across all components. I can’t provide a timeline at the moment, but will update when I can.
There is really very little to setup. Basically if you have terms defined for a locale, and the session is set to that locale (session.props.locale), then a term matching property value will get swapped with the localized term.
For instance:
I display the term “food” in en_us.
I add a localization for es that maps “food” to “comida”, using the translation manager.
Now, on any label being presented, if the default locale (en_us) text value is “food” and the session.props.locale is set to es, then the value displayed will be “comida”.
The underlying property value does not change, we simply present the localized version to the user instead of the default en_us version.
Thank you for your reply.
Just a few more questions:
Are the “system.util.*” functions related to translations (like “system.util.modifyTranslation” ) limited to the vision scope or available also in perspective?
Does the “session.props.locale” value correspond to the Java locale codes?