summaryrefslogtreecommitdiff
path: root/framework/source/fwi
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-16 22:43:32 +0100
committerEike Rathke <erack@redhat.com>2012-11-16 22:43:38 +0100
commit97760eb090ed7d5b9c05ac8ad02a27de1144ecc3 (patch)
treed073459b2ce7ba0a98aecd125141fea320d68ed1 /framework/source/fwi
parent15e274a37c75eedb6e2fae07e4689cef67cdf2d7 (diff)
use LanguageTag
Change-Id: I1f0516cc17741e8f87655ad251930a9da7bdb205
Diffstat (limited to 'framework/source/fwi')
-rw-r--r--framework/source/fwi/helper/mischelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/fwi/helper/mischelper.cxx b/framework/source/fwi/helper/mischelper.cxx
index 62922814fed2..379ec36e67a0 100644
--- a/framework/source/fwi/helper/mischelper.cxx
+++ b/framework/source/fwi/helper/mischelper.cxx
@@ -26,7 +26,7 @@
#include <tools/debug.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
-#include <i18npool/mslangid.hxx>
+#include <i18npool/languagetag.hxx>
#include <svtools/langtab.hxx>
#include <comphelper/processfactory.hxx>
#include <helper/mischelper.hxx>
@@ -179,7 +179,7 @@ void FillLangItems( std::set< OUString > &rLangItems,
if ( xLangGuesser.is() && !rGuessedTextLang.isEmpty())
{
::com::sun::star::lang::Locale aLocale(xLangGuesser->guessPrimaryLanguage( rGuessedTextLang, 0, rGuessedTextLang.getLength()) );
- LanguageType nLang = MsLangId::convertLocaleToLanguageWithFallback( aLocale );
+ LanguageType nLang = LanguageTag( aLocale ).makeFallback().getLanguageType();
if (nLang != LANGUAGE_DONTKNOW && nLang != LANGUAGE_NONE && nLang != LANGUAGE_SYSTEM
&& IsScriptTypeMatchingToLanguage( nScriptType, nLang ))
rLangItems.insert( rLanguageTable.GetString( nLang ));