mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
prepare windows i18n
This commit is contained in:
parent
1fca43791c
commit
ae5c614bf8
3 changed files with 17 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue