new logic for enabling translation in bundled releases of ardour

git-svn-id: svn://localhost/ardour2/branches/3.0@13980 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2013-01-23 18:44:16 +00:00
parent f08f3acbac
commit bc2523c249
4 changed files with 49 additions and 9 deletions

View file

@ -149,7 +149,7 @@ fixup_bundle_environment (int, char* [])
bundle_dir = Glib::path_get_dirname (exec_dir);
#ifdef ENABLE_NLS
if (ARDOUR::translations_are_disabled ()) {
if (!ARDOUR::translations_are_enabled ()) {
localedir = "/this/cannot/exist";
export_search_path (bundle_dir, "GTK_LOCALEDIR", "/Resources/locale");
} else {
@ -237,7 +237,7 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
std::string userconfigdir = user_config_directory();
#ifdef ENABLE_NLS
if (ARDOUR::translations_are_disabled ()) {
if (!ARDOUR::translations_are_enabled ()) {
localedir = "/this/cannot/exist";
export_search_path (dir_path, "GTK_LOCALEDIR", "/this/cannot/exist");
} else {