summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 3433e42ec..e6166ee82 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -968,7 +968,10 @@ Glib::ustring SPDocument::getLanguage() const
if ( NULL == document_language || *document_language == 0 ) {
document_language = getenv ("LANG");
}
-
+ if ( NULL == document_language || *document_language == 0 ) {
+ document_language = getenv ("LANGUAGE");
+ }
+
if ( NULL != document_language ) {
const char *pos = strchr(document_language, '_');
if ( NULL != pos ) {