63 utils::string_map::const_iterator
find(
const std::string& key)
const;
64 utils::string_map::const_iterator
end()
const;
A config object defines a single node in a WML file, with access to child nodes.
A class grating read only view to a vector of config objects, viewed as one config with all children ...
const language_def & get_locale()
void init_textdomains(const game_config_view &cfg)
Initializes the list of textdomains from a configuration object.
bool & time_locale_correct()
int get_min_translation_percent()
const language_def & get_language()
std::vector< language_def > get_languages(bool all=false)
Return a list of available translations.
bool load_language_list()
bool init_strings(const game_config_view &cfg)
Initializes certain English strings.
void set_language(const language_def &locale)
void set_min_translation_percent(int percent)
bool operator==(const language_def &) const
std::vector< std::string > alternates
int percent
% of translated text in core po-s
language_def()
Creates the 'System Default Language' definition.
bool rtl
A right to left language? (e.g: Hebrew)
bool operator<(const language_def &a) const
utils::string_map::const_iterator end() const
const t_string & operator[](const std::string &key) const
Look up the string mappings given in [language] tags.
utils::string_map::const_iterator find(const std::string &key) const
Look up the string mappings given in [language] tags.