Sigh, why does 'svn commit .' only work sometimes?: Revert aegisublocale.cpp

back to r2595.  r2609 (svn:ignore commit) included debuggin code which is
harmless but not required.

Originally committed to SVN as r2610.
This commit is contained in:
Amar Takhar 2009-01-02 02:15:32 +00:00
parent 3419b99790
commit fa5e257ead

View file

@ -45,7 +45,6 @@
#include "aegisublocale.h"
#include "standard_paths.h"
#include <wx/stdpaths.h>
///////////////
// Constructor
@ -68,33 +67,6 @@ void AegisubLocale::Init(int language) {
#ifdef __WINDOWS__
locale->AddCatalogLookupPathPrefix(StandardPaths::DecodePath(_T("?data/locale/")));
#endif
//#define INSTALL_PREFIX "/mnt/free/aegisub/i"
//wxStandardPaths stdpaths;
//stdpaths.SetInstallPrefix(wxT(INSTALL_PREFIX));
wxString dataDir = wxStandardPaths::Get().GetDataDir();
wxString userDir = wxStandardPaths::Get().GetUserDataDir();
wxString tempDir = wxStandardPaths::Get().GetTempDir();
wxString resDir = wxStandardPaths::Get().GetResourcesDir();
const wxLanguageInfo *lang = wxLocale::GetLanguageInfo(language);
wxString locDir = wxStandardPaths::Get().GetLocalizedResourcesDir(lang->CanonicalName, wxStandardPathsBase::ResourceCat_Messages);
printf("dataDir: %s\n", dataDir.mb_str(wxConvUTF8).data());
printf("userDir: %s\n", userDir.mb_str(wxConvUTF8).data());
printf("tempDir: %s\n", tempDir.mb_str(wxConvUTF8).data());
printf("resDir: %s\n", resDir.mb_str(wxConvUTF8).data());
printf("locDir: %s\n", locDir.mb_str(wxConvUTF8).data());
//printf("GetResourcesDir: %s\n", StandardPaths::GetResourcesDir().mb_str(wxConvUTF8));
//printf("StandardPaths::DecodePath: %s", StandardPaths::DecodePath("?data/locale/").mb_str(wxConvUTF8));
locale->AddCatalog(_T("aegisub"));
locale->AddCatalog(_T("wxstd"));
setlocale(LC_NUMERIC, "C");