Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 22838 → Rev 22837

/trunk/Scribus/scribus/langmgr.cpp
1035,17 → 1035,15
dictList.replaceInStrings(".dic","");
 
//Ensure we have aff+dic file pairs, remove any hyphenation dictionaries from the list
for (const QString& dictName : qAsConst(dictList))
 
foreach(const QString& dictName, dictList)
{
if (!QFile::exists(dictionaryPaths.at(i) + dictName + ".aff"))
dictList.removeAll(dictName);
else
{
dictList.removeAll(dictName);
continue;
}
if (dictionaryMap.contains(dictName))
continue;
 
if (!dictionaryMap.contains(dictName))
{
if (dictName.length()<=5)
{
//QString shortAbbrev(LanguageManager::getShortAbbrevFromAbbrev(dictName));
1061,6 → 1059,8
dictionaryMap.insert(shortAbbrev, dictionaryPaths.at(i)+dictName);
}
}
}
}
// qDebug()<<"Number of dictionaries/AFFs found in"<<dictionaryPaths.at(i)<<":"<<dictList.count();
}
//Now rescan dictionary map for any extra languages we can support with the files we have
1111,8 → 1111,7
dictFilters.append("*.dic");
QStringList dictList(dictLocation.entryList(dictFilters, QDir::Files, QDir::Name));
dictList.replaceInStrings(".dic","");
 
for (const QString& dn : qAsConst(dictList))
foreach(const QString& dn, dictList)
{
// qDebug()<<dn;
QString dictName;
1120,8 → 1119,8
dictName = dn.section('_',1);
else
dictName = dn;
if (dictionaryMap.contains(dictName))
continue;
if (!dictionaryMap.contains(dictName))
{
if (dictName.length()<=2)
{
dictionaryMap.insert(dictName, dictionaryPaths.at(i)+dn+".dic");
1134,6 → 1133,7
}
}
}
}
 
LanguageManager::~LanguageManager()
{