diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-22 03:29:28 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-22 03:29:28 +0000 |
commit | 7a4ab98f89973657bf5996f2380a4817c3ee43ee (patch) | |
tree | 4d6c73e76b8d64f073d36981af1decc3b4e78328 /gtk2_ardour/main.cc | |
parent | 8b259e45cbb697d76dd8850b14c88cedcbc76c6f (diff) |
guard initial bindtextdomain() etc. with ENABLE_NLS for debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@13968 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r-- | gtk2_ardour/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 035434216c..2b5287a301 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -238,7 +238,7 @@ fixup_bundle_environment (int /*argc*/, char* argv[]) lpath.push_back (dir_path); lpath.push_back ("share"); lpath.push_back ("locale"); - localedir = strdup (Glib::build_filename (lpath).c_str()); + localedir = realpath (Glib::build_filename (lpath).c_str(), NULL); /* note that this function is POSIX/Linux specific, so using / as a dir separator in this context is just fine. @@ -397,6 +397,9 @@ int main (int argc, char *argv[]) windows_vst_gui_init (&argc, &argv); #endif +#ifdef ENABLE_NLS + cerr << "bnd txt domain to " << localedir << endl; + (void) bindtextdomain (PACKAGE, localedir); /* our i18n translations are all in UTF-8, so make sure that even if the user locale doesn't specify UTF-8, @@ -404,6 +407,7 @@ int main (int argc, char *argv[]) */ (void) bind_textdomain_codeset (PACKAGE,"UTF-8"); (void) textdomain (PACKAGE); +#endif pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, 0); |