Translate the default campaign name in NewCampaignModal

Patch by: nwtour
Differential Revision: https://code.wildfiregames.com/D3977
This was SVN commit r25471.
This commit is contained in:
wraitii 2021-05-20 10:03:51 +00:00
parent 5e6038eeaf
commit eda2901a33
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ class NewCampaignModal
Engine.GetGUIObjectByName('cancelButton').onPress = () => Engine.PopGuiPage();
Engine.GetGUIObjectByName('startButton').onPress = () => this.createAndStartCampaign();
Engine.GetGUIObjectByName('runDescription').caption = this.template.Name;
Engine.GetGUIObjectByName('runDescription').caption = translate(this.template.Name);
Engine.GetGUIObjectByName('runDescription').onTextEdit = () => {
Engine.GetGUIObjectByName('startButton').enabled = Engine.GetGUIObjectByName('runDescription').caption.length > 0;
};

View file

@ -13,7 +13,7 @@
</object>
<object type="text" style="ModernLabelText" text_align="left" size="24 20 100%-24 100%-100">
<translatableAttribute id="caption">Please enter the name of your new campaign run: </translatableAttribute>
<translatableAttribute id="caption">Please enter the name of your new campaign run:</translatableAttribute>
</object>
<object name="runDescription" size="24 100%-96 100%-24 100%-72" type="input" style="ModernInput">