12:42, EEST
December 20, 2021
Good morning,
I created a new alarm object HelpOffNormalAlarmTypeNode
I added translations for the DisplayName attribute
LocalizedText en = new LocalizedText("My Alarm", "en_GB");
alarm.setDisplayName(fr);
alarm.setDisplayName(en);
I set the locale of the UAExpert client
General.LocaleId: en-GB / fr-FR / …
and I correctly see the translation of the DisplayName attribute.
Question:
Do you think it is possible to add translations also for the PropertyType Message?
The DataType of Message is LocalizedType, but I would need to set multiple translations.
Thanks,
Francesco
13:45, EEST
Moderators
February 11, 2020
Hello,
The DataType of Message Property is LocalizedText so it could have different values for different Locales. However, the SDK does not provide built-in support for setting the Value Attribute of Message Property in multiple different Locales. To provide different values based on Locales of the Session reading the Value of the Property, you could use either IoManager or IoManagerListener. For another discussion on this topic, see https://forum.prosysopc.com/forum/opc-ua-java-sdk/differente-translation-in-every-node/
The value of the Message Field in HelpOffNormalAlarmType Events (and all types of Events in general) can not be modified when sending the Event to a Client based on the Locales of the Session that has Subscribed to Events.
17:38, EEST
December 20, 2021
Dear Matti,
Thanks for your help.
Please can you tell me if this behavior is caused by a limitation of the OPC UA specification or by the SDK?
“The value of the Message Field in HelpOffNormalAlarmType Events (and all types of Events in general) can not be modified when sending the Event to a Client based on the Locales of the Session that has Subscribed to Events.”
Best regards,
Francesco
21:46, EEST
December 21, 2011
It’s due to the SDK at the moment. The idea of LocalizedText is of course that each client would be able to get the texts in their preferred locale.
The localization has not been very important to our customers so far, so we haven’t put much effort in the details. But, I don’t think it would be very difficult to improve this a bit, if you need it. How important are these localization issues for your application?
Most Users Ever Online: 1919
Currently Online:
20 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1