Rename Fluent-related code to be more precise.

This commit is contained in:
Paul Chote
2024-10-01 19:34:12 +01:00
committed by Gustas
parent 771b9ddfda
commit b29b685058
176 changed files with 1349 additions and 1369 deletions

View File

@@ -334,11 +334,11 @@ namespace OpenRA.Mods.Common.UpdateRules
return string.Join("\n", messages.Select(m => prefix + $" {separator} {m.Replace("\n", "\n " + prefix)}"));
}
public static bool IsAlreadyTranslated(string translation)
public static bool IsAlreadyExtracted(string key)
{
if (translation == translation.ToLowerInvariant() && translation.Any(c => c == '-') && translation.All(c => c != ' '))
if (key == key.ToLowerInvariant() && key.Any(c => c == '-') && key.All(c => c != ' '))
{
Console.WriteLine($"Skipping {translation} because it is already translated.");
Console.WriteLine($"Skipping {key} because it is already extracted.");
return true;
}