Author: silene
Date: Sun Apr 12 10:39:07 2009
New Revision: 34759
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34759&view=rev
Log:
Made --dummy-locales option actually depend on support for dummy locales.
Removed deprecated option --dummylocales.
Modified:
trunk/src/game.cpp
trunk/src/language.cpp
Modified: trunk/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=34759&r1=34758&r2=34759&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sun Apr 12 10:39:07 2009
@@ -401,11 +401,12 @@
} else if(val == "-e" || val == "--editor") {
jump_to_editor_ = true;
#endif
- } else if(val == "--dummylocales") {
- std::cerr << "--dummylocales is deprecated use
--dummy-locales instead.\n";
+ } else if(val == "--dummy-locales") {
+#ifdef USE_DUMMYLOCALES
game_config::use_dummylocales = true;
- } else if(val == "--dummy-locales") {
- game_config::use_dummylocales = true;
+#else
+ std::cerr << "Option --dummy-locales ignored: support
was not compiled in.\n";
+#endif
} else if(val[0] == '-') {
std::cerr << "unknown option: " << val << std::endl;
throw config::error("unknown option");
Modified: trunk/src/language.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/language.cpp?rev=34759&r1=34758&r2=34759&view=diff
==============================================================================
--- trunk/src/language.cpp (original)
+++ trunk/src/language.cpp Sun Apr 12 10:39:07 2009
@@ -218,8 +218,7 @@
locale = win_locale.c_str();
#endif
-#ifndef _WIN32
- // dummy locales aren't working in windows
+#ifdef USE_DUMMYLOCALES
if (game_config::use_dummylocales)
{
static enum { UNINIT, NONE, PRESENT } status = UNINIT;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits