Go to the source code of this file.
Classes | |
struct | language_def |
struct | symbol_table |
Typedefs | |
typedef std::vector< language_def > | language_list |
Functions | |
bool & | time_locale_correct () |
std::vector< language_def > | get_languages () |
void | set_language (const language_def &locale) |
const language_def & | get_language () |
bool | current_language_rtl () |
const language_def & | get_locale () |
void | init_textdomains (const config &cfg) |
Initializes the list of textdomains from a configuration object. More... | |
bool | init_strings (const config &cfg) |
Initializes certain English strings. More... | |
bool | load_language_list () |
Variables | |
symbol_table | string_table |
typedef std::vector<language_def> language_list |
Definition at line 56 of file language.hpp.
bool current_language_rtl | ( | ) |
Definition at line 55 of file language.cpp.
References get_language(), and language_def::rtl.
Referenced by gui::menu::draw_row().
const language_def& get_language | ( | ) |
Definition at line 251 of file language.cpp.
Referenced by current_language_rtl(), and gui2::tlanguage_selection::pre_show().
std::vector<language_def> get_languages | ( | ) |
Definition at line 118 of file language.cpp.
References known_languages, and sort().
Referenced by test_utils::game_config_manager::game_config_manager(), game_launcher::init_language(), gui2::tlanguage_selection::post_show(), and gui2::tlanguage_selection::pre_show().
const language_def& get_locale | ( | ) |
Definition at line 253 of file language.cpp.
References i, known_languages, preferences::language(), LOG_G, and translation::set_language().
Referenced by game_launcher::init_language().
bool init_strings | ( | const config & | cfg | ) |
Initializes certain English strings.
Definition at line 316 of file language.cpp.
References config::child_range(), and load_strings().
Referenced by game_config_manager::load_game_config().
Initializes the list of textdomains from a configuration object.
Definition at line 293 of file language.cpp.
References t_string::add_textdomain(), config::child_range(), filesystem::get_binary_dir_location(), filesystem::get_intl_dir(), and WRN_G.
Referenced by test_utils::game_config_manager::game_config_manager(), game_config_manager::init_game_config(), game_launcher::play_screenshot_mode(), and game_launcher::start_editor().
bool load_language_list | ( | ) |
Definition at line 94 of file language.cpp.
References config::child_range(), filesystem::get_wml_location(), known_languages, N_, preprocess_file(), and read().
Referenced by BOOST_AUTO_TEST_CASE(), test_utils::game_config_manager::game_config_manager(), and game_launcher::init_language().
void set_language | ( | const language_def & | locale | ) |
Definition at line 211 of file language.cpp.
References language_def::alternates, load_strings(), language_def::localename, translation::set_language(), time_locale_correct(), and wesnoth_setlocale().
bool& time_locale_correct | ( | ) |
Definition at line 67 of file language.cpp.
Referenced by set_language(), util::strftime(), and wesnoth_setlocale().
symbol_table string_table |
Definition at line 65 of file language.cpp.
Referenced by attack_info(), dialogs::unit_preview_pane::draw_contents(), gui2::tgame_load::evaluate_summary_string(), default_map_generator_job::generate_name(), battle_prediction_pane::get_unit_strings(), help::unit_topic_generator::operator()(), gui2::set_weapon_info(), and unit_alignment().