[kmail2] [Bug 320074] KMail uses a wrong autocorrection filename
André Marcelo Alvarenga
alvarenga at kde.org
Mon May 27 02:46:48 BST 2013
https://bugs.kde.org/show_bug.cgi?id=320074
--- Comment #3 from André Marcelo Alvarenga <alvarenga at kde.org> ---
(In reply to comment #2)
> In identity which language do you use as autocorrection ?
when I wrote the bug report, autocorrect language was empty (not defined),
since I was running KDE in a virtual machine.
Changing to Brazilian Portuguese (Português do Brasil), I deleted
/home/user/.kde/share/apps/autocorrect/custom-pt_BR.xml file and tested again,
but the problem remains.
KMail is still using:
/usr/share/kde4/apps/autocorrect/pt.xml
instead of:
/usr/share/kde4/apps/autocorrect/pt_BR.xml
I'm not a developer and maybe I'm wrong, but see this part of the code:
/calligra/plugins/textediting/autocorrection/Autocorrect.cpp
Line: 743
Q_FOREACH(const QString& path, folders)
{
if (!m_autocorrectLang.isEmpty())
fname = KGlobal::dirs()->findResource("data", path + "autocorrect/"
+ m_autocorrectLang + ".xml");
if (m_autocorrectLang != "all_languages") {
if (fname.isEmpty() && !kdelang.isEmpty())
fname = KGlobal::dirs()->findResource("data", path +
"autocorrect/" + kdelang + ".xml");
if (fname.isEmpty() && kdelang.contains("_")) {
kdelang.remove( QRegExp( "_.*" ) );
fname = KGlobal::dirs()->findResource("data", path +
"autocorrect/" + kdelang + ".xml");
}
}
if(!fname.isEmpty()) {
readAutocorrectXmlEntry(fname, false);
break;
}
}
This is correct?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list