15 #define GETTEXT_DOMAIN "wesnoth-test"
64 setlocale(LC_ALL,
"English");
66 std::setlocale(LC_ALL,
"C");
82 std::vector<language_def>::const_iterator English = std::find_if(languages.begin(),
void set_config(config &cfg)
Resets all data based on the provided config.
static config_cache & instance()
Get reference to the singleton object.
void set_paths(const config &cfg)
const hotkey::manager hotkey_manager_
this class is initialized once at game start put all initialization and wipe code in the methods here...
void merge_children(const std::string &key)
All children with the given key will be merged into the first element with that key.
void set_scope_active(scope s, bool set)
The paths manager is responsible for recording the various paths that binary files may be located at...
font::manager font_manager_
unit_type_data unit_types
Definitions for the interface to Wesnoth Markup Language (WML).
void set_language(const std::string &slocale, const std::vector< std::string > *alternates)
const config & get_test_config_ref()
void load_config(const config &v)
void bind_textdomain(const char *domain, const char *directory, const char *encoding)
std::string get_intl_dir()
void get_config(const std::string &path, config &cfg)
Gets a config object from given path.
static bool match_english(const language_def &def)
void init_textdomains(const config &cfg)
Initializes the list of textdomains from a configuration object.
void set_default_textdomain(const char *domain)
bool init()
Initializes the gui subsystems.
void deactivate_all_scopes()
static void check_manager()
bool load_language_list()
language_list get_languages()
Declarations for File-IO.
static game_config_manager * manager
static config & get_config_static()
void load_hotkeys(const config &cfg, bool set_as_default)
Iterates through all hotkeys present in the config struct and creates and adds them to the hotkey lis...
config & child(const std::string &key, int n=0)
Returns the nth child with the given key, or a reference to an invalid config if there is none...
A config object defines a single node in a WML file, with access to child nodes.
void add_define(const std::string &define)
Add a entry to preproc defines map.
GLsizei const GLcharARB ** string
filesystem::binary_paths_manager paths_manager_