mail[Wesnoth-commits] r20458 - /trunk/src/playturn.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by patrick_X99 on September 16, 2007 - 22:41:
Author: sapient
Date: Sun Sep 16 22:40:42 2007
New Revision: 20458

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20458&view=rev
Log:
improve a translatable string

Modified:
    trunk/src/playturn.cpp

Modified: trunk/src/playturn.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playturn.cpp?rev=20458&r1=20457&r2=20458&view=diff
==============================================================================
--- trunk/src/playturn.cpp (original)
+++ trunk/src/playturn.cpp Sun Sep 16 22:40:42 2007
@@ -15,13 +15,13 @@
 #include "playturn.hpp"
 
 #include "config.hpp"
+#include "construct_dialog.hpp"
 #include "game_display.hpp"
 #include "game_config.hpp"
 #include "game_preferences.hpp"
 #include "gamestatus.hpp"
 #include "gettext.hpp"
 #include "replay.hpp"
-#include "show_dialog.hpp"
 #include "sound.hpp"
 #include "team.hpp"
 #include "unit.hpp"
@@ -219,8 +219,12 @@
                                }
                        }
 
-                       const std::string msg = 
teams_[side_index].current_player() + _(" has left the game. What do you want 
to do?");
-                       action = 
gui::show_dialog(gui_,NULL,"",msg,gui::OK_ONLY,&options);
+                       utils::string_map t_vars;
+                       t_vars["player"] = 
teams_[side_index].current_player();
+                       const std::string msg =  vgettext("$player has left 
the game. What do you want to do?", t_vars);
+                       gui::dialog dlg(gui_, "", msg, gui::OK_ONLY);
+                       dlg.set_menu(options);
+                       action = dlg.show();
                }
 
                //make the player an AI, and redo this turn, in case




Related Messages


Powered by MHonArc, Updated Sun Sep 16 23:20:32 2007