Port to Linguini

This commit is contained in:
Matthias Mailänder
2022-04-22 22:12:13 +02:00
committed by Paul Chote
parent 9d8c2bb4c4
commit 834de4efbe
11 changed files with 206 additions and 153 deletions

View File

@@ -1366,12 +1366,12 @@ namespace OpenRA
return false;
}
public string Translate(string key, IDictionary<string, object> args = null, string attribute = null)
public string Translate(string key, IDictionary<string, object> args = null)
{
if (Translation.GetFormattedMessage(key, args, attribute) == key)
return modData.Translation.GetFormattedMessage(key, args, attribute);
if (Translation.TryGetString(key, out var message, args))
return message;
return Translation.GetFormattedMessage(key, args, attribute);
return modData.Translation.GetString(key, args);
}
}
}