<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Add a language code via an extension"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=103855#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Add a language code via an extension"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=103855">bug 103855</a>
from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
<pre>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
<a href="https://lists.freedesktop.org/archives/libreoffice/2019-April/082441.html">https://lists.freedesktop.org/archives/libreoffice/2019-April/082441.html</a> (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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>