summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2013-11-13 18:03:07 +0000
committerJazzyNico <nicoduf@yahoo.fr>2013-11-13 18:03:07 +0000
commit67e24fa688c6b9da489a22a6bd281bf1956f38eb (patch)
tree929ee6a92f0a3f7ead2b682ddb4587bee454e823 /src/document.cpp
parentPartial fix for blocker bug 1163449: "Imported bitmap appear blurry when zoom... (diff)
downloadinkscape-67e24fa688c6b9da489a22a6bd281bf1956f38eb.tar.gz
inkscape-67e24fa688c6b9da489a22a6bd281bf1956f38eb.zip
Add command line support for EMF and WMF export, by David Mathog.
Fixed bugs: - https://launchpad.net/bugs/1244749 (bzr r12809)
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 ) {