[Libreoffice-commits] .: lingucomponent/source linguistic/workben
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Nov 24 12:18:03 PST 2012
lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 4 ++--
linguistic/workben/sspellimp.cxx | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit f1beaad9e60d35b39b1b9a3a517385ecbc9c5d41
Author: Eike Rathke <erack at redhat.com>
Date: Sat Nov 24 21:17:16 2012 +0100
some more LocaleToLanguage() replacement
Change-Id: Idde3595e92744a8bfc81a0c4714fde67e2220ea5
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 7be1983..d021fc0 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -296,7 +296,7 @@ sal_Bool SAL_CALL
sal_Int16 nFailure = GetSpellFailure( rWord, rLocale );
if (nFailure != -1)
{
- sal_Int16 nLang = LocaleToLanguage( rLocale );
+ sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType();
// postprocess result for errors that should be ignored
if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang ))
|| (!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
@@ -320,7 +320,7 @@ Reference< XSpellAlternatives >
Reference< XSpellAlternatives > xRes;
// note: mutex is held by higher up by spell which covers both
- sal_Int16 nLang = LocaleToLanguage( rLocale );
+ sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType();
int count;
Sequence< OUString > aStr( 0 );
diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx
index 914f2a1..68071d2 100644
--- a/linguistic/workben/sspellimp.cxx
+++ b/linguistic/workben/sspellimp.cxx
@@ -185,7 +185,7 @@ sal_Bool SAL_CALL
sal_Int16 nFailure = GetSpellFailure( rWord, rLocale );
if (nFailure != -1)
{
- sal_Int16 nLang = LocaleToLanguage( rLocale );
+ sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType();
// postprocess result for errors that should be ignored
if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang ))
|| (!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
@@ -214,7 +214,7 @@ Reference< XSpellAlternatives >
String aTmp( rWord );
if (aTmp.Len())
{
- sal_Int16 nLang = LocaleToLanguage( rLocale );
+ sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType();
if (STRING_NOTFOUND != aTmp.SearchAscii( "liss" ))
{
More information about the Libreoffice-commits
mailing list