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


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

Header


Content

Posted by esr on September 07, 2007 - 15:14:
Author: esr
Date: Fri Sep  7 15:13:41 2007
New Revision: 20173

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20173&view=rev
Log:
Simpler formatting string for end-of-scenario gold, at Ivanovic's request.

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=20173&r1=20172&r2=20173&view=diff
==============================================================================
--- trunk/src/playsingle_controller.cpp (original)
+++ trunk/src/playsingle_controller.cpp Fri Sep  7 15:13:41 2007
@@ -360,8 +360,14 @@
                                                                   << 
(remaining_gold+finishing_bonus);
                                                }
                                                report << '\n' << 
font::BOLD_TEXT << _("Retained Gold: ") << player->gold;
+
+                                               std::string goldmsg = _("You 
will start the next scenario with $gold or its defined minimum starting gold, 
whichever is higher.");
+                                               utils::string_map symbols;
+                                               symbols["gold"] = 
lexical_cast_default<std::string>(player->gold);
+                                               goldmsg = 
utils::interpolate_variables_into_string(goldmsg, &symbols);  
+
                                                // xgettext:no-c-format
-                                               report << '\n' << _("You will 
start the next scenario with ") << player->gold << _(" or the defined minimum 
starting gold of the following scenario, whichever is higher.");
+                                               report << '\n' << goldmsg;
                                        }
                                }
                        }




Related Messages


Powered by MHonArc, Updated Fri Sep 07 16:00:27 2007