Rename Translations yaml keys to FluentMessages.

This commit is contained in:
Paul Chote
2024-10-19 14:47:27 +01:00
committed by Gustas
parent ecaa414508
commit 8b11b499ed
150 changed files with 170 additions and 170 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
const string Enftl = "en.ftl";
ExtractFromFile(Path.Combine(package.Name, Enftl), mapRules, traitInfos, () =>
{
var node = yaml.NodeWithKeyOrDefault("Translations");
var node = yaml.NodeWithKeyOrDefault("FluentMessages");
if (node != null)
{
var value = node.NodeValue<string[]>();
@@ -94,7 +94,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
node.Value.Value = string.Join(", ", value.Concat(new string[] { Enftl }).ToArray());
}
else
yaml.Nodes.Add(new MiniYamlNodeBuilder("Translations", Enftl));
yaml.Nodes.Add(new MiniYamlNodeBuilder("FluentMessages", Enftl));
});
mapRules.Save();