Class TranslationDataAttribute
- Namespace
- Uncreated.Warfare.Translations
- Assembly
- Uncreated.Warfare.dll
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class TranslationDataAttribute : Attribute
- Inheritance
-
TranslationDataAttribute
- Inherited Members
Constructors
TranslationDataAttribute()
public TranslationDataAttribute()
TranslationDataAttribute(string?)
public TranslationDataAttribute(string? description)
Parameters
descriptionstring
TranslationDataAttribute(string?, params string?[]?)
public TranslationDataAttribute(string? description, params string?[]? parameters)
Parameters
Properties
Description
public string? Description { get; set; }
Property Value
IsPriorityTranslation
Whether or not to export this translation in a translation pack. Would be false in cases such as admin commands, when normal players wouldn't see the translations.
public bool IsPriorityTranslation { get; set; }
Property Value
Key
public string? Key { get; set; }
Property Value
Parameters
public string?[]? Parameters { get; set; }
Property Value
- string[]