Kaydet (Commit) f1beaad9 authored tarafından Eike Rathke's avatar Eike Rathke

some more LocaleToLanguage() replacement

Change-Id: Idde3595e92744a8bfc81a0c4714fde67e2220ea5
üst cf0a7fe1
...@@ -296,7 +296,7 @@ sal_Bool SAL_CALL ...@@ -296,7 +296,7 @@ sal_Bool SAL_CALL
sal_Int16 nFailure = GetSpellFailure( rWord, rLocale ); sal_Int16 nFailure = GetSpellFailure( rWord, rLocale );
if (nFailure != -1) if (nFailure != -1)
{ {
sal_Int16 nLang = LocaleToLanguage( rLocale ); sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType();
// postprocess result for errors that should be ignored // postprocess result for errors that should be ignored
if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang )) if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang ))
|| (!rHelper.IsSpellWithDigits() && HasDigits( rWord )) || (!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
...@@ -320,7 +320,7 @@ Reference< XSpellAlternatives > ...@@ -320,7 +320,7 @@ Reference< XSpellAlternatives >
Reference< XSpellAlternatives > xRes; Reference< XSpellAlternatives > xRes;
// note: mutex is held by higher up by spell which covers both // 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; int count;
Sequence< OUString > aStr( 0 ); Sequence< OUString > aStr( 0 );
......
...@@ -185,7 +185,7 @@ sal_Bool SAL_CALL ...@@ -185,7 +185,7 @@ sal_Bool SAL_CALL
sal_Int16 nFailure = GetSpellFailure( rWord, rLocale ); sal_Int16 nFailure = GetSpellFailure( rWord, rLocale );
if (nFailure != -1) if (nFailure != -1)
{ {
sal_Int16 nLang = LocaleToLanguage( rLocale ); sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType();
// postprocess result for errors that should be ignored // postprocess result for errors that should be ignored
if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang )) if ( (!rHelper.IsSpellUpperCase() && IsUpper( rWord, nLang ))
|| (!rHelper.IsSpellWithDigits() && HasDigits( rWord )) || (!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
...@@ -214,7 +214,7 @@ Reference< XSpellAlternatives > ...@@ -214,7 +214,7 @@ Reference< XSpellAlternatives >
String aTmp( rWord ); String aTmp( rWord );
if (aTmp.Len()) if (aTmp.Len())
{ {
sal_Int16 nLang = LocaleToLanguage( rLocale ); sal_Int16 nLang = LanguageTag( rLocale ).getLanguageType();
if (STRING_NOTFOUND != aTmp.SearchAscii( "liss" )) if (STRING_NOTFOUND != aTmp.SearchAscii( "liss" ))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment