r17818 by craig - Enable the alternative language abbreviation search when a user changes the language on the spell checker GUI
scribus-commit
scribus-commit at lists.scribus.net
Thu Oct 25 18:58:50 UTC 2012
Author: craig
Date: Thu Oct 25 18:58:50 2012
New Revision: 17818
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17818
Log:
Enable the alternative language abbreviation search when a user changes the language on the spell checker GUI
Modified:
branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
Modified: branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17818&path=/branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp Thu Oct 25 18:58:50 2012
@@ -146,11 +146,18 @@
void HunspellDialog::languageComboChanged(const QString &newLanguage)
{
m_returnToDefaultLang=true;
- QString wordLang=LanguageManager::instance()->getAbbrevFromLang(newLanguage, true, false);
+ QString wordLang=LanguageManager::instance()->getAbbrevFromLang(newLanguage, true, false, 1);
if (!m_hspellerMap->contains(wordLang) )
{
- qDebug()<<"hspeller"<<wordLang<<"does not exist";
- return;
+ //qDebug()<<"hspeller"<<wordLang<<"does not exist";
+ wordLang=LanguageManager::instance()->getAbbrevFromLang(newLanguage, true, false, 2);
+ if (!m_hspellerMap->contains(wordLang) )
+ //{
+ //qDebug()<<"hspeller"<<wordLang<<"ALTERNATIVE does not exist";
+ return;
+ //}
+ //else
+ //qDebug()<<"hspeller"<<wordLang<<"ALTERNATIVE exists";
}
QString word=m_wfList->at(wfListIndex).w;
More information about the scribus-commit
mailing list