]> git.saurik.com Git - wxWidgets.git/commitdiff
no need to add . and .. explicitely to the catalogs search path, the new catalog...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Mar 2006 18:30:04 +0000 (18:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Mar 2006 18:30:04 +0000 (18:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/internat/internat.cpp

index dd1fe4bbd815df7d1b37ab51a56ba9899b4fca1f..7dc7240a22e7418d670d95a05f892a7d03da1271 100644 (file)
@@ -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"));