|
a/src/aspell/rclaspell.cpp |
|
b/src/aspell/rclaspell.cpp |
1 |
#ifndef TEST_RCLASPELL
|
1 |
#ifndef TEST_RCLASPELL
|
2 |
#ifndef lint
|
2 |
#ifndef lint
|
3 |
static char rcsid[] = "@(#$Id: rclaspell.cpp,v 1.8 2007-02-07 16:31:42 dockes Exp $ (C) 2006 J.F.Dockes";
|
3 |
static char rcsid[] = "@(#$Id: rclaspell.cpp,v 1.9 2007-08-07 08:26:40 dockes Exp $ (C) 2006 J.F.Dockes";
|
4 |
#endif
|
4 |
#endif
|
5 |
#ifdef HAVE_CONFIG_H
|
5 |
#ifdef HAVE_CONFIG_H
|
6 |
#include "autoconfig.h"
|
6 |
#include "autoconfig.h"
|
7 |
#endif
|
7 |
#endif
|
8 |
|
8 |
|
|
... |
|
... |
91 |
delete m_data;
|
91 |
delete m_data;
|
92 |
m_data = 0;
|
92 |
m_data = 0;
|
93 |
// Language: we get this from the configuration, else from the NLS
|
93 |
// Language: we get this from the configuration, else from the NLS
|
94 |
// environment. The aspell language names used for selecting language
|
94 |
// environment. The aspell language names used for selecting language
|
95 |
// definition files (used to create dictionaries) are like en, fr
|
95 |
// definition files (used to create dictionaries) are like en, fr
|
96 |
if (!m_config->getConfParam("aspellLanguage", m_lang)) {
|
96 |
if (!m_config->getConfParam("aspellLanguage", m_lang) || m_lang.empty()) {
|
97 |
string lang = "en";
|
97 |
string lang = "en";
|
98 |
const char *cp;
|
98 |
const char *cp;
|
99 |
if ((cp = getenv("LC_ALL")))
|
99 |
if ((cp = getenv("LC_ALL")))
|
100 |
lang = cp;
|
100 |
lang = cp;
|
101 |
else if ((cp = getenv("LANG")))
|
101 |
else if ((cp = getenv("LANG")))
|