[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src/editor editor_main.cpp
From: |
Yann Dirson |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src/editor editor_main.cpp |
Date: |
Fri, 03 Sep 2004 06:40:33 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Yann Dirson <address@hidden> 04/09/03 10:35:28
Modified files:
src/editor : editor_main.cpp
Log message:
make editor init wesnoth-lib textdomain to get prefs translated
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/editor/editor_main.cpp.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
Patches:
Index: wesnoth/src/editor/editor_main.cpp
diff -u wesnoth/src/editor/editor_main.cpp:1.18
wesnoth/src/editor/editor_main.cpp:1.19
--- wesnoth/src/editor/editor_main.cpp:1.18 Fri Sep 3 07:01:22 2004
+++ wesnoth/src/editor/editor_main.cpp Fri Sep 3 10:35:28 2004
@@ -24,6 +24,7 @@
#include "../preferences.hpp"
#include "../language.hpp"
#include "../cursor.hpp"
+#include "../wesconfig.h"
#include <cctype>
#include <cstdlib>
@@ -36,9 +37,12 @@
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;