Table of Contents

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

description string

TranslationDataAttribute(string?, params string?[]?)

public TranslationDataAttribute(string? description, params string?[]? parameters)

Parameters

description string
parameters string[]

Properties

Description

public string? Description { get; set; }

Property Value

string

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

bool

Key

public string? Key { get; set; }

Property Value

string

Parameters

public string?[]? Parameters { get; set; }

Property Value

string[]