Issue 87386 - Lang choice of extension menu & toolbar is incorrect
Summary: Lang choice of extension menu & toolbar is incorrect
Status: CLOSED DUPLICATE of issue 86437
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 2.4 RC6
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://wiki.services.openoffice.org/w...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-24 21:20 UTC by bmarcelly
Modified: 2017-05-20 10:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Extension with menu, button, toolbar title without lang attribute (8.89 KB, application/vnd.openofficeorg.extension)
2008-03-24 21:22 UTC, bmarcelly
no flags Details
Extension with menu, button, toolbar title with lang=en attribute (17.10 KB, application/vnd.openofficeorg.extension)
2008-03-24 21:24 UTC, bmarcelly
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2008-03-24 21:20:44 UTC
See Developer's Guide page in the URL of this Issue. This page says concerning the 
Title of a menu or submenu:
"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."
The same text appears also for toolbar buttons.

This is no longer true with 2.4 RC6. I can't say when it regressed.
I tested a simple add-on with:

<prop oor:name="Title" oor:type="xs:string">
  <value>Test lang=none</value>
  <value xml:lang="fr">Test lang=fr</value>
  <value xml:lang="de">Test lang=de</value>
  <value xml:lang="es">Test lang=es</value>
</prop>

I configured my OpenOffice with the italian (it) langpack.
Expected : Test lang=none
Obtained:  Test lang=de

I replaced the add-on with another using this:

<prop oor:name="Title" oor:type="xs:string">
  <value xml:lang="fr">Test lang=fr</value>
  <value xml:lang="en">Test lang=en</value>
  <value xml:lang="de">Test lang=de</value>
  <value xml:lang="es">Test lang=es</value>
</prop>
I tested again with the italian langpack.
Expected : not defined in spec
Obtained : Test lang=en

I got the same results also for the Toolbar title.
Comment 1 bmarcelly 2008-03-24 21:22:31 UTC
Created attachment 52267 [details]
Extension with menu, button, toolbar title without lang attribute
Comment 2 bmarcelly 2008-03-24 21:24:10 UTC
Created attachment 52268 [details]
Extension with menu, button, toolbar title with lang=en attribute
Comment 3 bmarcelly 2008-03-25 11:21:17 UTC
The default already exists on version 2.3.1
Comment 4 bmarcelly 2008-04-19 10:42:00 UTC
Found this is a duplicate. But this report gives valuable information.
Comment 5 bmarcelly 2008-04-19 14:31:16 UTC
Duplicate of Issue 86437
("Resolve issue as duplicate" does not work for me)
Comment 6 Edwin Sharp 2014-01-31 11:58:33 UTC
Duplicate per comment 5

*** This issue has been marked as a duplicate of issue 86437 ***