From: Vadim Zeitlin Date: Sat, 25 Mar 2006 22:57:49 +0000 (+0000) Subject: partly undid last commit: we still need to look in . for the message catalogs to... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/89611d4d5ae69189a09c8c92c5bddb59b8941bfc partly undid last commit: we still need to look in . for the message catalogs to find them under Unix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/internat/internat.cpp b/samples/internat/internat.cpp index 7dc7240a22..661a990669 100644 --- a/samples/internat/internat.cpp +++ b/samples/internat/internat.cpp @@ -190,9 +190,11 @@ bool MyApp::OnInit() } } - // if the message catalogs are installed in non-default locations you can - // use this function to let wxLocale know about them - // wxLocale::AddCatalogLookupPathPrefix(wxT("message_catalogs_subdir")); + // normally this wouldn't be necessary as the catalog files would be found + // in the default locations, but when the program is not installed the + // catalogs are in the build directory where we wouldn't find them by + // default + wxLocale::AddCatalogLookupPathPrefix(wxT(".")); // Initialize the catalogs we'll be using m_locale.AddCatalog(wxT("internat"));