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:
parent
666097f96c
commit
2c87f6110e
@ -973,9 +973,9 @@ function notifyOrderFailure(entity, player)
|
|||||||
cmpGUIInterface.PushNotification({
|
cmpGUIInterface.PushNotification({
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"players": [player],
|
"players": [player],
|
||||||
"message": sprintf(markForTranslation("%(unit)s can't be controlled."), {
|
"message": markForTranslation("%(unit)s can't be controlled."),
|
||||||
"unit": cmpIdentity.GetGenericName()
|
"parameters": { "unit": cmpIdentity.GetGenericName() },
|
||||||
}),
|
"translateParameters": ["unit"],
|
||||||
"translateMessage": true
|
"translateMessage": true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user