summaryrefslogtreecommitdiff
path: root/linguistic/source/dlistimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source/dlistimp.cxx')
-rw-r--r--linguistic/source/dlistimp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index fd9f377057de..ed7a8a712576 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -566,7 +566,7 @@ uno::Reference< XDictionary > SAL_CALL
{
osl::MutexGuard aGuard( GetLinguMutex() );
- sal_Int16 nLanguage = LocaleToLanguage( rLocale );
+ sal_Int16 nLanguage = LanguageTag( rLocale ).getLanguageType();
bool bIsWriteablePath = rURL.match( GetDictionaryWriteablePath(), 0 );
return new DictionaryNeo( rName, nLanguage, eDicType, rURL, bIsWriteablePath );
}
@@ -578,7 +578,7 @@ uno::Reference< XDictionaryEntry > SAL_CALL
throw(RuntimeException)
{
osl::MutexGuard aGuard( GetLinguMutex() );
- return SearchDicList( this, rWord, LocaleToLanguage( rLocale ),
+ return SearchDicList( this, rWord, LanguageTag( rLocale ).getLanguageType(),
bSearchPosDics, bSearchSpellEntry );
}
@@ -669,7 +669,7 @@ void DicList::_CreateDicList()
// and add it to list
rtl::OUString aDicName( A2OU( "IgnoreAllList" ) );
uno::Reference< XDictionary > xIgnAll(
- createDictionary( aDicName, CreateLocale( LANGUAGE_NONE ),
+ createDictionary( aDicName, LanguageTag( LANGUAGE_NONE ).getLocale(),
DictionaryType_POSITIVE, rtl::OUString() ) );
if (xIgnAll.is())
{