diff --git a/samples/internat/internat.cpp b/samples/internat/internat.cpp index dd1fe4bbd8..7dc7240a22 100644 --- a/samples/internat/internat.cpp +++ b/samples/internat/internat.cpp @@ -190,13 +190,9 @@ bool MyApp::OnInit() } } - // normally this wouldn't be necessary as the catalog files would be found - // in the default locations, but under Windows then the program is not - // installed the catalogs are in the parent directory (because the binary - // is in a subdirectory of samples/internat) where we wouldn't find them by - // default - wxLocale::AddCatalogLookupPathPrefix(wxT(".")); - wxLocale::AddCatalogLookupPathPrefix(wxT("..")); + // 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")); // Initialize the catalogs we'll be using m_locale.AddCatalog(wxT("internat"));