mail[Wesnoth-commits] r20236 - /trunk/src/playsingle_controller.cpp


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

Header


Content

Posted by Soliton on September 09, 2007 - 19:06:
Author: soliton
Date: Sun Sep  9 19:06:12 2007
New Revision: 20236

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20236&view=rev
Log:
fix bug #4212: Use player name instead of "your" for "It is now your turn" 
dialog

Modified:
    trunk/src/playsingle_controller.cpp

Modified: trunk/src/playsingle_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playsingle_controller.cpp?rev=20236&r1=20235&r2=20236&view=diff
==============================================================================
--- trunk/src/playsingle_controller.cpp (original)
+++ trunk/src/playsingle_controller.cpp Sun Sep  9 19:06:12 2007
@@ -517,7 +517,11 @@
        }
 
        if(preferences::turn_dialog()) {
-               gui::message_dialog(*gui_,"",_("It is now your turn")).show();
+               std::string message = _("It is now $name|'s turn");
+               utils::string_map symbols;
+               symbols["name"] = teams_[player_number_ - 1].current_player();
+               message = utils::interpolate_variables_into_string(message, 
&symbols);
+               gui::message_dialog(*gui_, "", message).show();
        }
 
        const std::string& turn_cmd = preferences::turn_cmd();




Related Messages


Powered by MHonArc, Updated Sun Sep 09 19:20:31 2007