16 #define GETTEXT_DOMAIN "wesnoth-test"
67 setlocale(LC_ALL,
"English");
69 std::setlocale(LC_ALL,
"C");
85 std::vector<language_def>::const_iterator English = std::find_if(languages.begin(),
A config object defines a single node in a WML file, with access to child nodes.
config & mandatory_child(config_key_type key, int n=0)
Returns the nth child with the given key, or throws an error if there is none.
void add_define(const std::string &define)
Add a entry to preproc defines map.
static config_cache & instance()
Get reference to the singleton object.
void get_config(const std::string &path, config &cfg, abstract_validator *validator=nullptr)
Gets a config object from given path.
A class grating read only view to a vector of config objects, viewed as one config with all children ...
game_config_view merged_children_view(config_key_type key) const
this class is initialized once at game start put all initialization and wipe code in the methods here...
static game_config_manager * manager
static config & get_config_static()
filesystem::binary_paths_manager paths_manager_
const hotkey::manager hotkey_manager_
game_config_view game_config_view_
font::manager font_manager_
static void check_manager()
void set_config(const game_config_view &cfg)
Resets all data based on the provided config.
Definitions for the interface to Wesnoth Markup Language (WML).
Declarations for File-IO.
void init_textdomains(const game_config_view &cfg)
Initializes the list of textdomains from a configuration object.
bool load_language_list()
language_list get_languages(bool all)
Return a list of available translations.
std::string get_intl_dir()
void load_config(const config &v)
void init()
Initializes the GUI subsystems.
void switch_theme(const std::string ¤t_theme)
Set and activate the given gui2 theme.
constexpr uint32_t scope_game
void load_default_hotkeys(const game_config_view &cfg)
Registers all hotkeys present in this config.
static bool match_english(const language_def &def)
const config & get_test_config_ref()
void set_language(const std::string &language, const std::vector< std::string > *)
void bind_textdomain(const char *domain, const char *directory, const char *)
void set_default_textdomain(const char *domain)
The paths manager is responsible for recording the various paths that binary files may be located at.
void set_paths(const game_config_view &cfg)
unit_type_data unit_types