https://bugs.documentfoundation.org/show_bug.cgi?id=103855

--- Comment #8 from Eike Rathke <er...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to