Setting Character Limitations in Multilingual XML
Hi,
I have a multilingual XML file that I need to upload onto Wordbee, but it also has character limitations that need to be set up as well, I have already set up xpaths to extract the text, but I cannot seem to get the character limitations set up. The XML code follows this structure, with the number inside the <comment> tags being the limitation required:
<context>
<name>AccessView</name>
<message>
<location filename="../LibNwStandardPlatform/plugins/Nw/TechnicalMenu/qml/AccessView.qml" line="10"/>
<source>User Access</source>
<comment>19</comment>
<translation type="unfinished">Benutzer-
zugang</translation>
</message>
<message>
<location filename="../LibNwStandardPlatform/plugins/Nw/TechnicalMenu/qml/AccessView.qml" line="48"/>
<source>Saved successfully</source>
<comment>20</comment>
<translation type="unfinished">Erfolgreich gesichert</translation>
</message>
</content>
Can anybody help me with a solution for this please?
Thanks
-
Official comment
Good morning Mark,
hope you are fine.
Let me post an answer here so that others can benefit as well.
You can set up character limitations only if the length attribute is as below (see bold):
<context>
<name>AccessView</name>
<message length=19>
<location filename="../LibNwStandardPlatform/plugins/Nw/TechnicalMenu/qml/AccessView.qml" line="10"/>
<source>User Access</source>
<comment>19</comment>
<translation type="unfinished">Benutzer-
zugang</translation>
</message>
<message length=20>
<location filename="../LibNwStandardPlatform/plugins/Nw/TechnicalMenu/qml/AccessView.qml" line="48"/>
<source>Saved successfully</source>
<comment>20</comment>
<translation type="unfinished">Erfolgreich gesichert</translation>
</message>
</content>Then you can use the configuration setup like this:
Have a blessed day everyone.
All the best
Wojciech
Please sign in to leave a comment.
Comments
1 comment