source: filezilla/trunk/fuentes/src/interface/locale_initializer.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 1010 bytes
Line 
1#ifndef __LOCALE_INITIALIZER_H__
2
3wxString GetFallbackLocale(wxString const& locale);
4
5#ifdef __WXGTK__
6
7#include <string>
8
9class CInitializer
10{
11public:
12        static bool SetLocale(const std::string& arg);
13
14        static std::string GetLocaleOption();
15
16        static bool error;
17
18protected:
19        static std::string GetAdjustedSettingsDir(); // Returns settings from fzdefaults.xml if it exists, otherwise calls GetSettingsDir
20        static std::string GetUnadjustedSettingsDir(); // Returns standard settings dir as if there were no fzdefaults.xml
21        static std::string ReadSettingsFromDefaults(std::string file);
22        static std::string GetSettingFromFile(std::string file, const std::string& name);
23        static std::string GetDefaultsXmlFile();
24        static std::string CheckPathForDefaults(std::string path, int strip, std::string suffix);
25
26        static bool SetLocaleReal(const std::string& locale);
27        static std::string LocaleAddEncoding(const std::string& locale, const std::string& encoding);
28};
29
30#endif //__WXGTK__
31
32#endif //__LOCALE_INITIALIZER_H__
Note: See TracBrowser for help on using the repository browser.