From 1f07bdde2ff2aa9d4695648a4a6de2c9b752eea6 Mon Sep 17 00:00:00 2001 From: theAdib Date: Tue, 30 Dec 2008 20:33:13 +0000 Subject: add possibility to change the UI language (gettext) in preferences dialogue (bzr r7044) --- src/inkscape.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/inkscape.cpp') 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 -- cgit v1.2.3