

12:12, EEST

March 16, 2017

Hi,
at the Prosys Simulation Server there is a node at StaticVariables ‘ns=5;s=LocalizedText’
Does it contain only an ‘en’ Text or does it also contain any other languages.
I tried to connect with OpcUa Browser and set locale to either de or en in the preferences, but I always get only the en translation of the LocalizedText
How can I set multiple languages to this node?
I tried it like described in the OpcUa reference (https://reference.opcfoundatio…..5/docs/8.5) by setting the LocalizedText node to the value (Locale=mul and Text = {“t”:[[“de-DE”, “Ich bin dein text 1,2345”],[“en-US”, “I’m your text 1.2345”]]} )
but then I also do not get an en or de translation. When I read the ‘ns=5;s=LocalizedText’ node the value is Locale=mul, Text = {“t”:[[“de-DE”, “Ich bin….
Thank you!
14:15, EEST

Moderators
February 11, 2020

Hello,
Unfortunately, the “ns=5;s=LocalizedText” Node doesn’t support the “mul” locale for setting values for multiple locales. This Node can only have the LocalizedText with one pair of locale and text at any given time. In a sense, it treats the “mul” locale same as any other locale and returns the value exactly as it was written.
While you can write value in any locale to the Node, only the latest value written is kept in memory, and thus reading the Node will always return the value in the latest locale written regardless of the preferred locale configured in the Session.
15:14, EEST

March 16, 2017

15:55, EEST

Moderators
February 11, 2020

Hello,
The .NET Demo Server of Unified Automation (see https://www.unified-automation…..r-sdk.html) has Node ns=2;s=Demo.UnicodeTest.IDS_HELLO_WORLD, that has different different values for at least locales en-US and de-DE, possibly for some other locales as well, but those were the two I tested.
Though, I’m not sure if this Node supports the “mul” locale when writing. But at least you will be able to verify that different values are returned when different locales are used in Sessions.
1 Guest(s)
