How to translate address space into French language in OPC UA SERVER?|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How to translate address space into French language in OPC UA SERVER?
Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
1
05/08/2024 - 21:50
sp_Permalink sp_Print

Hi,

I have developed OPC UA SERVER application using CSharp(C#) language

I have one requirement in OPC UA Server.

OPC-UA  server shall support at least English and French languages for textual data provided through OPC UA services, default language being fr-FR. Currently it supports English Language.

How to achieve to support French language?

is there any changes required in OPC UA Server side?

I am using NodeSet2 XML file for populating address space in OPC UA Server. Now the data contains in NodeSet XML file is in English Language.

Please help me

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/09/2024 - 01:07
sp_Permalink sp_Print

You use populate the ResourceManager with translated strings.

https://github.com/OPCFoundati.....Manager.cs

You set the Key property of LocalizedText values to tell the SDK to look up the translation.

Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
3
05/09/2024 - 01:11
sp_Permalink sp_Print sp_EditHistory

Hi, Thank you for your reply.

I am using NodeSet2 XML file for populating address space. So how to achieve translation?

NodeSet XML:

<UAVariable NodeId="ns=1;i=192" BrowseName="1:detected number" ParentNodeId="ns=1;i=167" DataType="String">
<DisplayName>detected number</DisplayName>
<Description>detected number Description</Description>
<References>
<Reference ReferenceType="HasTypeDefinition">i=688</Reference>
<Reference ReferenceType="HasModellingRule">i=880</Reference>
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=19567</Reference>
</References>
</UAVariable>

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
05/10/2024 - 00:24
sp_Permalink sp_Print

NodeSet is not a good place for translation. You are better off using the mechanisms baked into .NET and loading the strings into the ResourceManager.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 95
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1395
Posts: 4715