[Libreoffice-bugs] [Bug 103855] Add a language code via an extension
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 10 13:37:52 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=103855
--- Comment #8 from Eike Rathke <erack at redhat.com> ---
The example has an error in that it adds the node under
<item oor:path="/org.openoffice.Office.Linguistic">
<node oor:name="ServiceManager">
which is wrong, instead it should be a separate item with a different path,
<item oor:path="/org.openoffice.VCL">
<node oor:name="ExtraLanguages">
According to
https://lists.freedesktop.org/archives/libreoffice/2019-April/082441.html (see
full version of a dictionaries.xcu there) a working example is
<item oor:path="/org.openoffice.VCL">
<node oor:name="ExtraLanguages">
<node oor:name="nod-TH" oor:op="fuse">
<prop oor:name="Name" oor:type="xs:string">
<value>Northern Thai</value>
</prop>
<prop oor:name="ScriptType" oor:type="xs:int">
<value>3</value>
</prop>
</node>
</node>
</item>
Adding the localization/translation capabilities that then might be
<item oor:path="/org.openoffice.VCL">
<node oor:name="ExtraLanguages">
<node oor:name="nod-TH" oor:op="fuse">
<prop oor:name="Name" oor:type="xs:string">
<value xml:lang="en-US">Northern Thai</value>
<value xml:lang="...">Your favorite translation here...</value>
</prop>
<prop oor:name="ScriptType" oor:type="xs:int">
<value>3</value>
</prop>
</node>
</node>
</item>
I'm not quite sure about the oor:op="fuse" vs oor:op="replace" attribute, i.e.
what would actually happen if there are multiple entries for one name.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190410/d39bb354/attachment.html>
More information about the Libreoffice-bugs
mailing list