native translation code isn't clever enough to reuse parameters

This commit is contained in:
FaceDeer 2020-02-23 17:16:50 -07:00
parent e07374c705
commit 66ffd3d54e
2 changed files with 5 additions and 4 deletions

View File

@ -525,9 +525,10 @@ local log_to_string = function(market, log_entry, account)
end
end
return colour .. S("On day @1 @2 sold @3 @4 to @5 at @6@7 each for a total of @6@8.",
local currency_symbol = market.def.currency_symbol
return colour .. S("On day @1 @2 sold @3 @4 to @5 at @6@7 each for a total of @8@9.",
math.ceil(log_entry.timestamp/86400), seller_name, log_entry.quantity, itemname,
purchaser_name, market.def.currency_symbol, log_entry.price, log_entry.quantity*log_entry.price), new
purchaser_name, currency_symbol, log_entry.price, currency_symbol, log_entry.quantity*log_entry.price), new
end

View File

@ -80,8 +80,8 @@ Number of items available for sale in the market.=
#tooltip
Number of items there's demand for in the market.=
#transaction log entry. @1 is a day number, @2 is a player name, @3 is a quantity of items, @4 is the item name, @5 is a player name, @6 is a currency symbol, @7 is a number (price), and @8 is a number (price)
On day @1 @2 sold @3 @4 to @5 at @6@7 each for a total of @6@8.=
#transaction log entry. @1 is a day number, @2 is a player name, @3 is a quantity of items, @4 is the item name, @5 is a player name, @6 is a currency symbol, @7 is a number (price), @8 is the currency symbol again and @9 is a number (price)
On day @1 @2 sold @3 @4 to @5 at @6@7 each for a total of @8@9.=
Order=
Player=