41 const std::string &salternates =
"",
const std::string&
sort_name =
"",
const std::string&
percent =
"100") :
50 }
catch(
const std::invalid_argument&) {
76 const t_string& operator[](
const std::string& key)
const;
77 const t_string& operator[](
const char* key)
const;
82 utils::string_map::const_iterator find(
const std::string& key)
const;
83 utils::string_map::const_iterator end()
const;
std::vector< language_def > get_languages(bool all=false)
Return a list of available translations.
bool init_strings(const game_config_view &cfg)
Initializes certain English strings.
bool operator==(const language_def &) const
bool operator<(const language_def &a) const
bool load_language_list()
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< language_def > language_list
void set_language(const language_def &locale)
void set_min_translation_percent(int percent)
const language_def & get_language()
int percent
% of translated text in core po-s
symbol_table string_table
std::vector< std::string > split(const config_attribute_value &val)
const language_def & get_locale()
void init_textdomains(const game_config_view &cfg)
Initializes the list of textdomains from a configuration object.
A config object defines a single node in a WML file, with access to child nodes.
bool current_language_rtl()
bool & time_locale_correct()
std::vector< std::string > alternates