forked from Satissis/CourseplayEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Locale.h
38 lines (29 loc) · 808 Bytes
/
Locale.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef LOCALE_H_INCLUDED
#define LOCALE_H_INCLUDED
#include <wx/wx.h>
#include <wx/intl.h>
#include "Variables.h"
class Settings;
class Locale
{
public: // Functions
Locale(Settings *config);
~Locale();
void getInstalledLanguages(LangList &langList, bool addDefault = false);
bool askUserForLanguage(wxString msg, wxString caption);
bool loadLocale();
bool loadDefaultLocaleIfExists();
void saveLocale(bool bReset = false);
void setLocaleSearchPath(wxString value);
void setLocaleConfigPath(wxString value);
virtual void setSelectedLangId(wxLanguage lang);
public: // Variables
long selectedLangId;
wxString shortLangName;
private: // Variables
Settings *m_Config;
wxString m_SearchPath;
wxString m_ConfigPath;
wxLocale *m_Locale;
};
#endif // LOCALE_H_INCLUDED