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

@@ -22,6 +22,15 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
public class MainMenuLogic : ChromeLogic
{
[TranslationReference]
const string LoadingNews = "loading-news";
[TranslationReference("message")]
const string NewsRetrivalFailed = "news-retrival-failed";
[TranslationReference("message")]
const string NewsParsingFailed = "news-parsing-failed";
protected enum MenuType { Main, Singleplayer, Extras, MapEditor, StartupPrompts, None }
protected enum MenuPanel { None, Missions, Skirmish, Multiplayer, MapEditor, Replays, GameSaves }
@@ -33,15 +42,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
readonly LabelWidget newsStatus;
readonly ModData modData;
[TranslationReference]
static readonly string LoadingNews = "loading-news";
[TranslationReference("message")]
static readonly string NewsRetrivalFailed = "news-retrival-failed";
[TranslationReference("message")]
static readonly string NewsParsingFailed = "news-parsing-failed";
// Update news once per game launch
static bool fetchedNews;