Maybe the following is bullshit. I am not sure how the code works that i
am looking at ;).
The idl for locale defines the Variant. The comment as theOnline
description says you are not able to access locale directly, but you
have to go through Xlocale.
Xlocale does not know a variant. It only knows aVariant as it does not
know country, only aCountry and aLanguage.
you sure that Language, Country and Variant are the right variables?
All the Best
Peter
On 04.05.19 10:08, Jörg Schmidt wrote:
> Hello,
>
> does anyone know if ".Variant" is implemented correctly in "Locale"?
>
> The example from the IDL reference ("es", "ES", "Traditional_WIN"):
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/Locale.html
>
> doesn't work if I test it with Basic:
>
> Dim aLocale
> aLocale = ThisComponent.CurrentSelection(0).CharLocale
> aLocale.Language = "es"
> aLocale.Country = "ES"
> aLocale.Variant = "Traditional_WIN"
> ThisComponent.CurrentSelection(0).CharLocale = aLocale
>
>
>
> greetings,
> Jörg
>
>
> ---------------------------------------------------------------------
> 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]