Commit 25847930 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Use en as aspell language default in japanese environment: aspell does not...

Use en as aspell language default in japanese environment: aspell does not support japanese and japanese users often have english texts
parent 6877d059
......@@ -131,6 +131,14 @@ bool Aspell::init(string &reason)
if (!lang.compare("C"))
lang = "en";
m_lang = lang.substr(0, lang.find_first_of("_"));
if (!m_lang.compare("ja")) {
// Aspell has no support for Japanese. We substitute
// english, as Japanese users often have texts with
// interspersed english words or english texts. Japanese
// parts of the text won't be sent to aspell (check
// Rcl::Db::isSpellingCandidate())
m_lang = "en";
}
}
m_data = new AspellData;
......
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