Allow localisation of dictionary values.

This commit is contained in:
Matthias Mailänder
2023-04-23 17:50:15 +02:00
committed by Gustas
parent 55ff0ac1f4
commit af6330b1bd
2 changed files with 14 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ using Linguini.Shared.Types.Bundle;
using Linguini.Syntax.Parser;
using Linguini.Syntax.Parser.Error;
using OpenRA.FileSystem;
using OpenRA.Traits;
namespace OpenRA
{
@@ -27,6 +28,7 @@ namespace OpenRA
public sealed class TranslationReferenceAttribute : Attribute
{
public readonly string[] RequiredVariableNames;
public readonly LintDictionaryReference DictionaryReference;
public TranslationReferenceAttribute() { }
@@ -34,6 +36,11 @@ namespace OpenRA
{
RequiredVariableNames = requiredVariableNames;
}
public TranslationReferenceAttribute(LintDictionaryReference dictionaryReference = LintDictionaryReference.None)
{
DictionaryReference = dictionaryReference;
}
}
public class Translation