You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using UA-ModelCompiler and I had problems with the Locale and possible translations.
In my ModelDesign.xml file I want to insert the possibility of having a description with multiple language options.
If I write this code
<opc:Object SymbolicName="Object1" TypeDefinition="MyType" SupportsEvents="true">
<opc:BrowseName>Object1</opc:BrowseName>
<opc:Description Locale ="en-US">This is the first object</opc:Description>
<opc:Description Locale ="it-IT">Questo è il primo oggetto</opc:Description>
</opc:Object>
I get some kind of error:
the first Locale saying The 'Locale' attribute is not defined.
so I also tried to follow this pattern but it doesn't recognize Descriprion, Text, Translation ... well, I don't know how to make it work.
Then I saw that the UA Model Design.xsd and it says (about Description on line 202-204):
"The Description the value of the Description attribute for the Node. This element includes an optional key that can be used to look up the Description for other locales in a resource DB. The validator automatically creates a generic Description from the BrowseName and NodeClass." (and the same for DisplayName).
I didn't find any other hint to use the Key of Description and even less how/where create/use the database with the related LocaleText.
Can you please help me figure out how to use multilanguage (in both cases, with Locale and Key)?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello, I'm using UA-ModelCompiler and I had problems with the Locale and possible translations.
In my ModelDesign.xml file I want to insert the possibility of having a description with multiple language options.
If I write this code
I get some kind of error:
However, running the UA.ModelCompiler.exe does not generate any errors.
Running my server I can see only the first Description even if In the beginning of the file I have:
The Reference (https://reference.opcfoundation.org/v104/Core/docs/Part6/F.10/) says
so I also tried to follow this pattern but it doesn't recognize Descriprion, Text, Translation ... well, I don't know how to make it work.
Then I saw that the UA Model Design.xsd and it says (about Description on line 202-204):
"The Description the value of the Description attribute for the Node. This element includes an optional key that can be used to look up the Description for other locales in a resource DB. The validator automatically creates a generic Description from the BrowseName and NodeClass." (and the same for DisplayName).
I didn't find any other hint to use the Key of Description and even less how/where create/use the database with the related LocaleText.
Can you please help me figure out how to use multilanguage (in both cases, with Locale and Key)?
Thanks in advance!
The text was updated successfully, but these errors were encountered: