Fix locale dir under windows, I forgot to change it after copying and pasting some code from aegisub.

Originally committed to SVN as r3611.
This commit is contained in:
Amar Takhar 2009-10-03 17:37:09 +00:00
parent e1469154ea
commit 41f39f65d7
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ bool Reporter::OnInit()
wxLocale *locale = new wxLocale(); wxLocale *locale = new wxLocale();
locale->Init(wxLANGUAGE_ENGLISH); locale->Init(wxLANGUAGE_ENGLISH);
#ifdef __WINDOWS__ #ifdef __WINDOWS__
//locale->AddCatalogLookupPathPrefix(Aegisub::DecodePath(_T("?data/locale"))); wxStandardPathsBase &paths = wxStandardPaths::Get();
locale->AddCatalogLookupPathPrefix(wxString::Format("%s/locale", paths.GetDataDir()));
locale->AddCatalog(_T("reporter")); locale->AddCatalog(_T("reporter"));
#else #else
locale->AddCatalog("reporter"); locale->AddCatalog("reporter");