To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=99435
                 Issue #|99435
                 Summary|Accelerators.xcu - undesired effect when setting the l
                        |ocale with language-country
               Component|framework
                 Version|DEV300m40
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|tm
             Reported by|arielch





------- Additional comments from [email protected] Fri Feb 20 01:01:14 
+0000 2009 -------
Tested on DEV300_m40 with three different language packs (en-US, es, de), the 
problem I've found is that if you indicate the language-country code (es-AR, 
de-DE), the accelerators don't work:



<?xml version="1.0"?>
<oor:component-data 
  xmlns:oor="http://openoffice.org/2001/registry"; 
  xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
  xmlns:install="http://openoffice.org/2004/installation"; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
  oor:name="Accelerators" 
  oor:package="org.openoffice.Office">

    <node oor:name="PrimaryKeys">
        <node oor:name="Global">
            <node oor:name="F9" oor:op="replace">
                <prop oor:name="Command">
                    <value xml:lang="en-US">.uno:CloseWin</value>
                    <value xml:lang="es-AR">.uno:About</value>
                    <value xml:lang="de-DE">.uno:Open</value>
                </prop>
            </node>
        </node>
    </node>
    
</oor:component-data>



in this example, 

<value xml:lang="es-AR">.uno:About</value>
<value xml:lang="de-DE">.uno:Open</value>

do not work when the respective language is active in the UI, and default to 
<value xml:lang="en-US">.uno:CloseWin</value>

Problem seems to be that the office locale has no country (in the case of es and
de). So the following DOES work:



<?xml version="1.0"?>
<oor:component-data 
  xmlns:oor="http://openoffice.org/2001/registry"; 
  xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
  xmlns:install="http://openoffice.org/2004/installation"; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
  oor:name="Accelerators" 
  oor:package="org.openoffice.Office">

    <node oor:name="PrimaryKeys">
        <node oor:name="Global">
            <node oor:name="F9" oor:op="replace">
                <prop oor:name="Command">
                    <value xml:lang="en-US">.uno:CloseWin</value>
                    <value xml:lang="es">.uno:About</value>
                    <value xml:lang="de">.uno:Open</value>
                </prop>
            </node>
        </node>
    </node>
    
</oor:component-data>


As you can see: one has only to indicate the language, with no country.
IMO this is an issue and very error prone, because in all other cases where we
have to give an xml:lang value, the implementation is clever enough to find the
best matching result, and usually we set a language-COUNTRY value ("es-AR", 
"de-DE"), instead of an only language one ("es", "de").

Error prone because there is no general rule and is very implementation
specific: in some cases there *is* language-COUNTRY and in other not.

You can find a list  in 
http://svn.services.openoffice.org/opengrok/xref/DEV300_m41/solenv/inc/postset.mk#38

# Complete list of all supported ISO codes
completelangiso=af ar as-IN be-BY bg br bn bn-BD bn-IN bs by ca cs cy da de dz 
el en-GB en-US en-ZA eo es et eu fa fi fr ga gd gl gu gu-IN he hi-IN hr hu it 
ja ka km kn ko ku lo lt lv mk mn ms ml-IN mr-IN my ne nb nl nn nr ns oc or-IN 
pa-IN pl pt pt-BR ru rw sk sl sh sr ss st sv sw sw-TZ te-IN ti-ER ta-IN th tn 
tr ts tg ur-IN uk uz ve vi xh zh-CN zh-TW zu

as you see, "es" and "de" have no country, but "en-GB" "en-US" "en-ZA" do 
have.


This feature is intended not only for extensions developer's with programming
skills, but also for the common user and any one who can write a non-code
extension can benefit from it. This users will tend to use the same they see in
the Tools - Options dialog: under Language settings, the language for the user
interface is listed in the listbox as "German (Germany)" and "Spanish
(Argentina)", not as it is internally implemented (and in the only way the
Accelerators.xcu works): "de" and "es" respectively.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to