Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/shared/Dictionary.cpp

Issue 11254007: Installation with registry keys
Patch Set: Created July 25, 2013, 9:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/shared/Dictionary.h ('k') | src/shared/Utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « src/shared/Dictionary.h ('k') | src/shared/Utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld