Mark non-moddable translation strings as constant.
This commit is contained in:
committed by
Gustas
parent
4f016f149f
commit
760a1245c5
@@ -34,6 +34,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
Unknown = 16
|
||||
}
|
||||
|
||||
[TranslationReference("length")]
|
||||
const string LengthInSeconds = "length-in-seconds";
|
||||
|
||||
[TranslationReference]
|
||||
const string AllPackages = "all-packages";
|
||||
|
||||
readonly string[] allowedExtensions;
|
||||
readonly string[] allowedSpriteExtensions;
|
||||
readonly string[] allowedModelExtensions;
|
||||
@@ -71,12 +77,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
float modelScale;
|
||||
AssetType assetTypesToDisplay = AssetType.Sprite | AssetType.Model | AssetType.Audio | AssetType.Video;
|
||||
|
||||
[TranslationReference("length")]
|
||||
static readonly string LengthInSeconds = "length-in-seconds";
|
||||
|
||||
[TranslationReference]
|
||||
static readonly string AllPackages = "all-packages";
|
||||
|
||||
readonly string allPackages;
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
|
||||
Reference in New Issue
Block a user