1
0
forked from 0ad/0ad

Fix translation of "%(unit)s can't be controlled'

Message is translated correctly.
Issue was sprintf replaced %(unit)s before message was going to be
translated so string was never found in dictionary.
Introduced in b97d251322

Differential revision: D4254
Patch by: @Ceres
Based on code by: @nwtour
Reviewer: @Angen

This was SVN commit r25916.
This commit is contained in:
Angen 2021-09-11 09:23:56 +00:00
parent 666097f96c
commit 2c87f6110e

View File

@ -973,9 +973,9 @@ function notifyOrderFailure(entity, player)
cmpGUIInterface.PushNotification({
"type": "text",
"players": [player],
"message": sprintf(markForTranslation("%(unit)s can't be controlled."), {
"unit": cmpIdentity.GetGenericName()
}),
"message": markForTranslation("%(unit)s can't be controlled."),
"parameters": { "unit": cmpIdentity.GetGenericName() },
"translateParameters": ["unit"],
"translateMessage": true
});
}