28 #if defined(_WIN32) && defined(HR_ENGINE_SHARED) 30 # define MR_DllDeclare __declspec( dllexport ) 32 # define MR_DllDeclare __declspec( dllimport ) 35 # define MR_DllDeclare 60 static std::string NormalizeId(
const std::string &s);
63 void RequestPreferredLocale();
65 void RequestLocale(
const std::string &
id);
75 const std::string &IdToName(
const std::string &
id)
const;
78 using locales_t = std::map<std::string, std::string>;
locales_t availableLocales
Cached list of available locales.
Definition: Locale.h:96
boost::filesystem::path path_t
Definition: OS.h:57
locales_t::value_type value_type
Definition: Locale.h:86
const_iterator begin() const
Definition: Locale.h:87
const_iterator end() const
Definition: Locale.h:88
std::map< std::string, std::string > locales_t
Definition: Locale.h:78
locales_t::iterator iterator
Definition: Locale.h:84
OS::path_t path
Definition: Locale.h:93
locales_t::const_iterator const_iterator
Definition: Locale.h:85
Definition: Announcement.h:24
const boost::optional< std::string > & GetSelectedLocaleId() const
Return the ID of the locale that was selected by RequestLocale().
Definition: Locale.h:73
A library of available locales.
Definition: Locale.h:54
std::string domain
Definition: Locale.h:94
boost::optional< std::string > selectedLocaleId
Definition: Locale.h:95