Mark non-moddable translation strings as constant.

This commit is contained in:
Matthias Mailänder
2022-11-17 21:54:39 +01:00
committed by Gustas
parent 4f016f149f
commit 760a1245c5
58 changed files with 807 additions and 795 deletions

View File

@@ -21,19 +21,20 @@ namespace OpenRA.Mods.Common.Widgets.Logic
// Increment the version number when adding new stats
const int IntroductionVersion = 1;
[TranslationReference]
const string Classic = "classic";
[TranslationReference]
const string Modern = "modern";
readonly string classic;
readonly string modern;
public static bool ShouldShowPrompt()
{
return Game.Settings.Game.IntroductionPromptVersion < IntroductionVersion;
}
[TranslationReference]
static readonly string Classic = "classic";
readonly string classic;
[TranslationReference]
static readonly string Modern = "modern";
readonly string modern;
[ObjectCreator.UseCtor]
public IntroductionPromptLogic(Widget widget, ModData modData, WorldRenderer worldRenderer, Action onComplete)
{