language.hpp File Reference

#include "tstring.hpp"
#include "serialization/string_utils.hpp"
#include <map>
#include <string>
#include <vector>
#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

Functions

std::string languagedef_name (const language_def &def)
std::vector< language_defget_languages ()
bool 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.
bool load_language_list ()

Variables

symbol_table string_table


Detailed Description

Definition in file language.hpp.


Function Documentation

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 (  ) 

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  ) 


Variable Documentation


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs