Expose player names to localization.
This commit is contained in:
committed by
Gustas
parent
9a46f3053a
commit
4e5556dccc
@@ -16,9 +16,9 @@ namespace OpenRA.Scripting
|
||||
readonly Player player;
|
||||
|
||||
protected override string DuplicateKeyError(string memberName) =>
|
||||
$"Player '{player.PlayerName}' defines the command '{memberName}' on multiple traits";
|
||||
$"Player '{player.ResolvedPlayerName}' defines the command '{memberName}' on multiple traits";
|
||||
protected override string MemberNotFoundError(string memberName) =>
|
||||
$"Player '{player.PlayerName}' does not define a property '{memberName}'";
|
||||
$"Player '{player.ResolvedPlayerName}' does not define a property '{memberName}'";
|
||||
|
||||
public ScriptPlayerInterface(ScriptContext context, Player player)
|
||||
: base(context)
|
||||
|
||||
Reference in New Issue
Block a user