Extract editor brush texts.

This commit is contained in:
Matthias Mailänder
2023-05-20 19:55:17 +02:00
committed by abcdefg30
parent 8433bc0948
commit c9dddc342c
8 changed files with 69 additions and 11 deletions

View File

@@ -463,6 +463,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
class EditActorEditorAction : IEditorAction
{
[TranslationReference("name", "id")]
const string EditedActor = "notification-edited-actor";
public string Text { get; }
readonly IEnumerable<IEditActorHandle> handles;
@@ -476,7 +479,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
actorId = actor.ID;
this.actor = actor;
this.handles = handles;
Text = $"Edited {actor.Info.Name} ({actor.ID})";
Text = TranslationProvider.GetString(EditedActor, Translation.Arguments("name", actor.Info.Name, "id", actor.ID));
}
public void Execute()