mail[Wesnoth-commits] r28906 - /trunk/data/multiplayer/scenarios/ANL_utils/ANL_general_macros.cfg


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

Header


Content

Posted by benoit . timbert on August 23, 2008 - 23:36:
Author: noyga
Date: Sat Aug 23 23:36:48 2008
New Revision: 28906

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28906&view=rev
Log:
*NEVER* call macro inside translatable strings, if won't work if a transation 
is used.
TODO: there is some others in 
data/multiplayer/scenarios/ANL_utils/ANL_leader_options.cfg to fix (trikier 
because it's [message] child macros)

Modified:
    trunk/data/multiplayer/scenarios/ANL_utils/ANL_general_macros.cfg

Modified: trunk/data/multiplayer/scenarios/ANL_utils/ANL_general_macros.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/scenarios/ANL_utils/ANL_general_macros.cfg?rev=28906&r1=28905&r2=28906&view=diff
==============================================================================
--- trunk/data/multiplayer/scenarios/ANL_utils/ANL_general_macros.cfg 
(original)
+++ trunk/data/multiplayer/scenarios/ANL_utils/ANL_general_macros.cfg Sat Aug 
23 23:36:48 2008
@@ -68,11 +68,18 @@
     image=items/chest-plain-closed.png
     [/removeitem]
 {PLACE_IMAGE items/chest-plain-open.png {X} {Y}}
+[set_variable]
+    name=oc_treasure
+    value={TREASURE}
+[/set_variable]
 [message]
     speaker=narrator
     image=items/chest-plain-open.png
-    message= _ "The chest contains {TREASURE} gold."
+    message= _ "The chest contains $oc_treasure gold."
 [/message]
+[clear_variable]
+    name=oc_treasure
+[/clear_variable]
 {ADD_GOLD $side_number {TREASURE}}
 #enddef
 




Related Messages


Powered by MHonArc, Updated Sun Aug 24 00:01:46 2008