The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Typedefs | Functions | Variables
language.hpp File Reference
#include "tstring.hpp"
#include "serialization/string_utils.hpp"
#include <iterator>
Include dependency graph for language.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  language_def
 
struct  symbol_table
 

Typedefs

typedef std::vector< language_deflanguage_list
 

Functions

bool & time_locale_correct ()
 
std::vector< language_defget_languages ()
 
void set_language (const language_def &locale)
 
const language_defget_language ()
 
bool current_language_rtl ()
 
const language_defget_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 Documentation

typedef std::vector<language_def> language_list

Definition at line 56 of file language.hpp.

Function Documentation

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 ( )
const language_def& get_locale ( )
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().

void init_textdomains ( const config cfg)
bool load_language_list ( )
void set_language ( const language_def locale)
bool& time_locale_correct ( )

Definition at line 67 of file language.cpp.

Referenced by set_language(), util::strftime(), and wesnoth_setlocale().

Variable Documentation

symbol_table string_table