diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-11-16 21:22:36 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-11-16 21:22:36 +0000 |
| commit | 8420f10fa1e70abe46a90978d28c16a6f3a8ea7b (patch) | |
| tree | 7902443eb1b06f8da5e3ff06db2090b392e96160 /src/document.cpp | |
| parent | fix error su_v tell to me (diff) | |
| parent | fix typo in rev 12797 (diff) | |
| download | inkscape-8420f10fa1e70abe46a90978d28c16a6f3a8ea7b.tar.gz inkscape-8420f10fa1e70abe46a90978d28c16a6f3a8ea7b.zip | |
fix error su_v tell to me
(bzr r12588.1.28)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 5 |
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 ) { |
