Apache OpenOffice (AOO) Bugzilla – Issue 79666
Please add support for language variants to i18npool
Last modified: 2013-08-07 15:01:20 UTC
Please add support for language variants to i18npool. Language variants are for example like "en-US-ooo" or "pt-BR-so" . Please provide a fallback routine thus pt-BR-so fallsback to pt-BR and not en-US. Language variants are needed for issue 56622
set target to OOo 2.4
Accepted.
Actually this was already implemented with issue 73506 in cws 'localefallback' integrated to SRC680m222. See interface announcement http://www.openoffice.org/servlets/ReadMsg?list=interface-announce&msgNo=1076 Note that only a fall-back is implemented as variants aren't supported yet throughout the entire code base.
Closing.
I am testing your fallback method .... could it be that "pt-BR-so" fallsback to "pt" instead of "pt-BR" ?
No, can't be ;-) At least it shouldn't ... how do you call it? Use ::com::sun::star::lang::Locale MsLangId::getFallbackLocale( const ::com::sun::star::lang::Locale & rLocale ) with rLocale.Language == "pt" rLocale.Country == "BR" rLocale.Variant == "so" There isn't even a "pt" only entry in the table used, so if I didn't do a nasty typo resulting in an assignment of an empty string as country somewhere it should work. If not, please prepare a debug version of your code and i18npool's libisolang so we can step through.