Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
LocalizedText at Prosys-Simulation-Server
May 16, 2025
12:12, EEST
Avatar
rocket science
Member
Members
Forum Posts: 99
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

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!

May 16, 2025
14:15, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 359
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

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.

May 16, 2025
15:14, EEST
Avatar
rocket science
Member
Members
Forum Posts: 99
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Ok, I understand.

Do you know any Demo-Server which has a LocalizedText node that contains more than one locale/text pair?

May 16, 2025
15:55, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 359
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

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.

May 16, 2025
17:12, EEST
Avatar
rocket science
Member
Members
Forum Posts: 99
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Thank you for the information, I will try with the UA Demo Server

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 24
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 99
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 769
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1556
Posts: 6563
Newest Members:
odellflournoy9, Robertlom, kimhastings59, fentuy, KBrendel, GarryTerse, Shawnreify, Albertfug, madisonkilburn0, renafitchett0
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1052, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1