Issue 86437

Summary: rule for determining the default title of a element in a localized addons.xcu doesnt't follow the documentation
Product: General Reporter: clutz <chrlutz>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, marcelly.bernard
Version: OOo 2.3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description clutz 2008-02-25 12:14:18 UTC
The developers-guide defines in chapter 4.7.3, how the title of a element in the
addons.xcu should be determined if there are language specific translations
provided, but there is no translation for the current language:

<snip>
Title: Contains the title of a top-level menu item.  This property supports
localization: The default string, which is used when OpenOffice.org cannot find
a string definition for its current language, uses the value element without an
attribute. You define a string for a certain language with the xml:lang
attribute. Assign the language/locale to the attribute, for example  <value
xml:lang="en-US">string</value>
</snip>

This rule dosn't seem to be applied for my addons.xcu-file. Here is a snippet of
my addons.xcu as an example:

        <node oor:name="m1" oor:op="replace">
          <prop oor:name="URL" oor:type="xs:string">
            <value>wollmux:TextbausteinEinfuegen</value>
          </prop>
          <prop oor:name="Title" oor:type="xs:string">
            <value>Textbaustein einfügen</value>
            <value xml:lang="nl">Textbouwsteen toevoegen</value>
          </prop>
          <prop oor:name="ImageIdentifier" oor:type="xs:string">
            <value/>
          </prop>
          <prop oor:name="Target" oor:type="xs:string">
            <value>_self</value>
          </prop>
          <prop oor:name="Context" oor:type="xs:string">
            <value>com.sun.star.text.TextDocument</value>
          </prop>
        </node>

According to that rule, you can see that the default title for this element
should be "Textbaustein einfügen", so if I use the language "de" (which is not
explicitly in the list and not "nl"), I would expect to get "Textbaustein
einfügen" as title. But this is not what I get. I always get the nl-Version
"Textbouwsteen toevoegen". It seems that the last <value> always wins.
Comment 1 Edwin Sharp 2014-01-31 11:58:33 UTC
*** Issue 87386 has been marked as a duplicate of this issue. ***