summaryrefslogtreecommitdiff
path: root/i18npool/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-16 18:44:19 +0100
committerEike Rathke <erack@redhat.com>2012-11-16 18:45:05 +0100
commit3eb4304af99265c898835cd307ba7d689038996b (patch)
tree3f35698617a8fa89555382ba88dcdbefa1670d1d /i18npool/inc
parentd0776ccbd5a7b69dc85fba214e0916f1b6bd2eb1 (diff)
added LanguageTag::getIsoLanguageCountry() method
Change-Id: I8917c2958f021f11933d9da7fec8ef01609387c8
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/i18npool/languagetag.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/i18npool/inc/i18npool/languagetag.hxx b/i18npool/inc/i18npool/languagetag.hxx
index 5666fd158600..552110dc4366 100644
--- a/i18npool/inc/i18npool/languagetag.hxx
+++ b/i18npool/inc/i18npool/languagetag.hxx
@@ -95,6 +95,21 @@ public:
*/
LanguageType getLanguageType( bool bResolveSystem = true ) const;
+ /** Obtain ISO strings for language and country.
+
+ This is a convenience method for places that so far use only language and
+ country to replace the MsLangId::convert...IsoNames...() calls. Avoid
+ use in new code.
+
+ ATTENTION! May return empty strings if the language tag is not
+ expressable in valid ISO codes!
+
+ @see isIsoLocale()
+
+ Always resolves an empty tag to the system locale.
+ */
+ void getIsoLanguageCountry( rtl::OUString& rLanguage, rtl::OUString& rCountry ) const;
+
/** Get ISO 639 language code, or BCP 47 language.
Always resolves an empty tag to the system locale.