Re: Re: [l10n-dev] Dictionaries in OOo 3.3

Stephan Bergmann <[email protected]>
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
On 02/01/11 09:21, Ariel Constenla-Haile wrote:
> The problem is with the XCU file.
> The value of the "Locations" property is written in two lines:
>
>              <prop oor:name="Locations" oor:type="oor:string-list">
>                  <value>%origin%/es_AR.aff
>                         %origin%/es_AR.dic
>                  </value>
>              </prop>
>
> if you change this and write the value in a single line:
>
>              <prop oor:name="Locations" oor:type="oor:string-list">
>                  <value>%origin%/es_ES.aff %origin%/es_ES.dic</value>
>              </prop>
>
> the dictionary works.
>
> It looks like something changed in the config. code, sure Stephan can tell if
> this is a new feature or a bug.

In the first case, there is whitespace at the end of the list, so the 
new (OOo 3.3) configmgr implementation faithfully reports a third list 
element after that whitespace---an element that happens to be the empty 
string.  The old configmgr implementation behaved differently, so this 
example happened to work there as it probably had been intended by the 
example's author.

For OOo 3.3, an even better way to write string lists is with <it> 
elements, like

<value><it>%origin%/es_AR.aff</it><it>%origin%/es_AR.dic</it></value>

You can sprinkle as much whitespace as you like around the <it> elements.

-Stephan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.