Switch to unified view

a/src/aspell/rclaspell.cpp b/src/aspell/rclaspell.cpp
...
...
129
    else if ((cp = getenv("LANG")))
129
    else if ((cp = getenv("LANG")))
130
        lang = cp;
130
        lang = cp;
131
    if (!lang.compare("C"))
131
    if (!lang.compare("C"))
132
        lang = "en";
132
        lang = "en";
133
    m_lang = lang.substr(0, lang.find_first_of("_"));
133
    m_lang = lang.substr(0, lang.find_first_of("_"));
134
        if (!m_lang.compare("ja")) {
135
            // Aspell has no support for Japanese. We substitute
136
            // english, as Japanese users often have texts with
137
            // interspersed english words or english texts. Japanese
138
            // parts of the text won't be sent to aspell (check
139
            // Rcl::Db::isSpellingCandidate())
140
            m_lang = "en";
141
        }
134
    }
142
    }
135
143
136
    m_data = new AspellData;
144
    m_data = new AspellData;
137
145
138
    const char *aspell_prog_from_env = getenv("ASPELL_PROG");
146
    const char *aspell_prog_from_env = getenv("ASPELL_PROG");