Index: src/shared/Dictionary.cpp |
=================================================================== |
--- a/src/shared/Dictionary.cpp |
+++ b/src/shared/Dictionary.cpp |
@@ -9,10 +9,8 @@ |
const std::wstring baseLocale = L"en"; |
-Dictionary::Dictionary(const std::wstring& locale) |
+Dictionary::Dictionary( const std::wstring& locale, std::wstring basePath ) |
{ |
- std::wstring basePath = GetDllDir() + L"locales\\"; |
- |
// Always load base locale first - that's our fallback |
ReadDictionary(basePath, baseLocale); |
@@ -26,10 +24,10 @@ |
} |
} |
-void Dictionary::Create(const std::wstring& locale) |
+void Dictionary::Create(const std::wstring& locale, std::wstring basePath ) |
{ |
if (!instance) |
- instance = new Dictionary(locale); |
+ instance = new Dictionary(locale, basePath); |
} |
Dictionary* Dictionary::GetInstance() |