summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authortheAdib <theAdib@users.sourceforge.net>2008-12-30 20:33:13 +0000
committertheAdib <theAdib@users.sourceforge.net>2008-12-30 20:33:13 +0000
commit1f07bdde2ff2aa9d4695648a4a6de2c9b752eea6 (patch)
tree8322dcad9a8be248af22f341e92c46452b9bc3e5 /src/inkscape.cpp
parentRemove some obsolete from_2geom() calls (diff)
downloadinkscape-1f07bdde2ff2aa9d4695648a4a6de2c9b752eea6.tar.gz
inkscape-1f07bdde2ff2aa9d4695648a4a6de2c9b752eea6.zip
add possibility to change the UI language (gettext) in preferences dialogue
(bzr r7044)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 2a7f31c3e..8cd01c226 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -754,6 +754,13 @@ inkscape_application_init (const gchar *argv0, gboolean use_gui)
prefs->load(use_gui, false);
inkscape_load_menus(inkscape);
sp_input_load_from_preferences();
+
+ /* set language for user interface according setting in preferences */
+ Glib::ustring i18n = prefs->getString("/i18n/language");
+ if(!i18n.empty())
+ {
+ setenv("LANGUAGE", i18n, 1);
+ }
/* DebugDialog redirection. On Linux, default to OFF, on Win32, default to ON.
* Use only if use_gui is enabled