make editor init wesnoth-lib textdomain to get prefs translated

This commit is contained in:
Yann Dirson 2004-09-03 10:35:28 +00:00
parent a33d502dbb
commit 306c0017c2

View file

@ -24,6 +24,7 @@
#include "../preferences.hpp"
#include "../language.hpp"
#include "../cursor.hpp"
#include "../wesconfig.h"
#include <cctype>
#include <cstdlib>
@ -36,9 +37,12 @@ int main(int argc, char** argv)
setlocale (LC_ALL, "");
const std::string& intl_dir = get_intl_dir();
bindtextdomain ("wesnoth-editor", intl_dir.c_str());
textdomain ("wesnoth-editor");
bind_textdomain_codeset ("wesnoth-editor", "UTF-8");
bindtextdomain (PACKAGE "-editor", intl_dir.c_str());
bind_textdomain_codeset (PACKAGE "-editor", "UTF-8");
bindtextdomain (PACKAGE "-lib", intl_dir.c_str());
bind_textdomain_codeset (PACKAGE "-lib", "UTF-8");
textdomain (PACKAGE "-editor");
game_config::editor = true;