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

Unified Diff: src/shared/Dictionary.h

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/plugin/PluginUtil.cpp ('k') | src/shared/Dictionary.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/Dictionary.h
===================================================================
--- a/src/shared/Dictionary.h
+++ b/src/shared/Dictionary.h
@@ -4,13 +4,14 @@
#include <map>
#include <string>
#include <utility>
+#include "Utils.h"
class Dictionary
{
friend class DictionaryTest;
public:
- static void Create(const std::wstring& locale);
+ static void Create(const std::wstring& locale, std::wstring basePath = Location::locales_dir() );
static Dictionary* GetInstance();
std::wstring Lookup(const std::string& section, const std::string& key) const;
@@ -21,7 +22,7 @@
typedef std::map<KeyType,std::wstring> DataType;
DataType data;
- Dictionary(const std::wstring& locale);
+ Dictionary(const std::wstring& locale, std::wstring basePath);
bool ReadDictionary(const std::wstring& basePath, const std::wstring& locale);
};
« no previous file with comments | « src/plugin/PluginUtil.cpp ('k') | src/shared/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld