From 41f39f65d719d53b2b794f81bb0cccabfd1736ed Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sat, 3 Oct 2009 17:37:09 +0000 Subject: [PATCH] Fix locale dir under windows, I forgot to change it after copying and pasting some code from aegisub. Originally committed to SVN as r3611. --- aegisub/reporter/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/reporter/main.cpp b/aegisub/reporter/main.cpp index 5f02459ab..36f65135a 100644 --- a/aegisub/reporter/main.cpp +++ b/aegisub/reporter/main.cpp @@ -77,7 +77,8 @@ bool Reporter::OnInit() wxLocale *locale = new wxLocale(); locale->Init(wxLANGUAGE_ENGLISH); #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")); #else locale->AddCatalog("reporter");