prepare windows i18n

This commit is contained in:
Robin Gareus 2015-03-12 02:36:01 +01:00
parent 1fca43791c
commit ae5c614bf8
3 changed files with 17 additions and 0 deletions

View file

@ -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;