summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-03 18:50:40 +0200
committerEike Rathke <erack@redhat.com>2013-09-03 20:35:39 +0200
commitb641e39d0aa9356717018e94925485d4755f8bbb (patch)
treed0479c4ce59727a47709a088aa92cb88706ef4b9 /i18nlangtag
parentd695e8d0ea9e144e24928c45d56f59a2b59867b1 (diff)
added convertToLanguageTypeWithFallback()
Change-Id: Ib57a7c6fc57192b4a615f5ad0e43c580769513e9
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index de48d068ca88..acda42e8a7a0 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -1633,4 +1633,11 @@ LanguageType LanguageTag::convertToLanguageType( const OUString& rBcp47, bool bR
return LanguageTag( rBcp47).getLanguageType( bResolveSystem);
}
+
+// static
+LanguageType LanguageTag::convertToLanguageTypeWithFallback( const OUString& rBcp47 )
+{
+ return LanguageTag( rBcp47).makeFallback().getLanguageType( true);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */