Changed all translation to use new TransContext
This commit is contained in:
@@ -23,11 +23,11 @@ func start() -> void:
|
||||
textKey = "event.get_item.given"
|
||||
_:
|
||||
pass
|
||||
|
||||
VN.getTextbox().setText(tr_n(textKey, textKey + "_plural", quantity).format({
|
||||
"item": ITEM.getItemName(itemType, quantity),
|
||||
"quantity": quantity
|
||||
}));
|
||||
|
||||
var ctx = TransContext.new()
|
||||
ctx.addInteger("quantity", quantity)
|
||||
ctx.addContext("item", ITEM.getItem(itemType).getTransContext())
|
||||
VN.getTextbox().setText(ctx.transPlural(textKey, textKey + "_plural", quantity));
|
||||
|
||||
func isDone() -> bool:
|
||||
if !super.isDone():
|
||||
|
Reference in New Issue
Block a user