summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_env_mingw.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-12 02:36:01 +0100
committerRobin Gareus <robin@gareus.org>2015-03-12 02:37:10 +0100
commitae5c614bf8c68ca064345f4016c864f94bf62b8e (patch)
treedb2347109b737f0ec08ee0b8cb08f34746ac5b22 /gtk2_ardour/bundle_env_mingw.cc
parent1fca43791c64d324a420c2b3bc2d6054327933bb (diff)
prepare windows i18n
Diffstat (limited to 'gtk2_ardour/bundle_env_mingw.cc')
-rw-r--r--gtk2_ardour/bundle_env_mingw.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/bundle_env_mingw.cc b/gtk2_ardour/bundle_env_mingw.cc
index b45a209a79..3bfb653dda 100644
--- a/gtk2_ardour/bundle_env_mingw.cc
+++ b/gtk2_ardour/bundle_env_mingw.cc
@@ -95,6 +95,14 @@ fixup_bundle_environment (int, char* [], const char** localedir)
// Unset GTK_RC_FILES so that only ardour specific files are loaded
Glib::unsetenv ("GTK_RC_FILES");
+ if (ARDOUR::translations_are_enabled ()) {
+ path = windows_search_path().to_string();
+ path += "\\locale";
+ Glib::setenv ("GTK_LOCALEDIR", path, true);
+
+ // and return the same path to our caller
+ (*localedir) = strdup (path.c_str());
+ }
std::string path;
const char *cstr;