Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1291

Macros and UNO API • Re: How can a Locale be transformed into a localised display name?

$
0
0
You're using ThisComponent.getDocumentLanguages(1,999) to list the languages which are localised eg as "Englisch (USA)" and you want to derive the Country again from that localised name after the selection? Is that what you're asking?

The result for ThisComponent.getDocumentLanguages(1,999) includes the country so can't you just use the itemdata property in the listbox or combobox to store that value with each list item?
(Name) (Value Type) (Value) (AccessMode)
Country string GB
Language string English (UK)
Variant string ""

Statistics: Posted by JeJe — Thu Jul 04, 2024 11:46 am



Viewing all articles
Browse latest Browse all 1291

Trending Articles