From 2a2b48ef66916f3ac7aafb46b83e1e86a6e15cf8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 21 Jan 2013 23:14:00 +0000 Subject: start passing around the (possibly-bundle-modified) localedir so that we call bindtextdomain() correctly, and thus (hopefully) find message catalogs correctly inside a bundle git-svn-id: svn://localhost/ardour2/branches/3.0@13965 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/globals.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/globals.cc') diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 613ecbfc7d..e750792c5f 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -215,7 +215,7 @@ lotsa_files_please () } int -ARDOUR::init (bool use_windows_vst, bool try_optimization) +ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir) { if (!Glib::thread_supported()) { Glib::thread_init(); @@ -224,7 +224,7 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization) // this really should be in PBD::init..if there was one Gio::init (); - (void) bindtextdomain(PACKAGE, LOCALEDIR); + (void) bindtextdomain(PACKAGE, localedir); PBD::ID::init (); SessionEvent::init_event_pool (); -- cgit v1.2.3