From 3419b99790b5fba68b8053677b0088917542eab2 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Fri, 2 Jan 2009 02:13:15 +0000 Subject: [PATCH] Set svn:ignore svn_revision. Originally committed to SVN as r2609. --- aegisub/aegisublocale.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/aegisub/aegisublocale.cpp b/aegisub/aegisublocale.cpp index 27407e0e2..cb14a250c 100644 --- a/aegisub/aegisublocale.cpp +++ b/aegisub/aegisublocale.cpp @@ -45,6 +45,7 @@ #include "aegisublocale.h" #include "standard_paths.h" +#include /////////////// // Constructor @@ -67,6 +68,33 @@ 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");