Sync DrDump crash handler with TortoiseSVN codebase
[TortoiseGit.git] / ext / CrashServer / CrashHandler / SendRpt / Translator.h
blobad9234dd0070199b3406ec2cbec7b5d51e0d814e
1 // Copyright 2014 Idol Software, Inc.
2 //
3 // This file is part of Doctor Dump SDK.
4 //
5 // Doctor Dump SDK is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #include "IniFile.h"
22 class Translator
24 public:
25 Translator(
26 const wchar_t* appName,
27 const wchar_t* company,
28 HMODULE hImage,
29 DWORD resId,
30 const wchar_t* path);
32 CStringW GetString(const wchar_t* variable);
33 CStringW GetAppName() { return m_appName; }
35 private:
36 CStringW m_appName, m_company;
37 CStringW m_userLanguage;
38 std::unique_ptr<IniFile> m_custom;
39 IniFile m_default;