39 const std::string &salternates =
"",
const std::string&
sort_name =
"",
const std::string&
percent =
"100") :
48 }
catch(
const std::invalid_argument&) {
80 utils::string_map::const_iterator
find(
const std::string& key)
const;
81 utils::string_map::const_iterator
end()
const;
A class grating read only view to a vector of config objects, viewed as one config with all children ...
const language_def & get_locale()
bool current_language_rtl()
void init_textdomains(const game_config_view &cfg)
Initializes the list of textdomains from a configuration object.
bool & time_locale_correct()
std::vector< language_def > language_list
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)
symbol_table string_table
void set_min_translation_percent(int percent)
int stoi(std::string_view str)
Same interface as std::stoi and meant as a drop in replacement, except:
std::vector< std::string > split(const config_attribute_value &val)
bool operator==(const language_def &) const
language_def(const std::string &name, const t_string &lang, const std::string &dir, const std::string &salternates="", const std::string &sort_name="", const std::string &percent="100")
std::vector< std::string > alternates
int percent
% of translated text in core po-s
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.