mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
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:
parent
5e6038eeaf
commit
eda2901a33
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue