#include "tstring.hpp"
#include "serialization/string_utils.hpp"
#include <map>
#include <string>
#include <vector>
#include <iterator>
Go to the source code of this file.
Classes | |
struct | language_def |
struct | symbol_table |
Functions | |
std::string | languagedef_name (const language_def &def) |
std::vector< language_def > | get_languages () |
bool | 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. | |
bool | load_language_list () |
Variables | |
symbol_table | string_table |
Definition in file language.hpp.
bool current_language_rtl | ( | ) |
Definition at line 85 of file language.cpp.
References get_language(), and language_def::rtl.
Referenced by gui::menu::draw_row(), and show_intro_part_helper().
const language_def& get_language | ( | ) |
Definition at line 294 of file language.cpp.
References current_language.
Referenced by map_editor::change_language(), current_language_rtl(), and gui2::tlanguage_selection::show().
std::vector<language_def> get_languages | ( | ) |
Definition at line 161 of file language.cpp.
References known_languages.
Referenced by map_editor::change_language(), main(), and gui2::tlanguage_selection::show().
const language_def& get_locale | ( | ) |
Definition at line 296 of file language.cpp.
References lg::general, lg::info, known_languages, preferences::language(), LOG_STREAM, and wesnoth_setlocale().
Referenced by main().
void init_textdomains | ( | const config & | cfg | ) |
Initializes the list of textdomains from a configuration object.
Definition at line 331 of file language.cpp.
References t_string::add_textdomain(), config::child_range(), get_binary_file_location(), get_intl_dir(), name, and game_config::path.
Referenced by main().
std::string languagedef_name | ( | const language_def & | def | ) |
Definition at line 80 of file language.cpp.
References language_def::language.
Referenced by map_editor::change_language().
bool load_language_list | ( | ) |
Definition at line 137 of file language.cpp.
References cfg, config::child_range(), known_languages, N_, preprocess_file(), read(), and stream.
Referenced by main().
bool set_language | ( | const language_def & | locale | ) |
Definition at line 250 of file language.cpp.
References language_def::alternates, cfg, current_language, known_languages, language_def::localename, preprocess_file(), read(), stream, strings_, config::values, and wesnoth_setlocale().
Referenced by map_editor::change_language(), main(), and gui2::tlanguage_selection::show().
Definition at line 114 of file language.cpp.
Referenced by help::generate_ability_topics(), generate_name(), and reports::generate_report().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |