Fixed plugin values which depended on the region settings of the computer (#1194)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-12 08:57:50 +01:00
1 parent 65d50de033
commit a1b493cb13
20 files changed
+397 -137

No files matched your search

+6 -1
View File
@@ -12,7 +12,12 @@ public static class LuaTable
// Add the UI_TEXT_CONTENT table:
//
sb.AppendLineLF($$"""{{tableVariableName}} = {}""");
foreach (var kvp in keyValuePairs.OrderBy(x => x.Key))
//
// Ordinal, so that every computer writes the texts in the same order. A comparison by culture would
// depend on the region settings of the computer, e.g., where it sorts the underscore:
//
foreach (var kvp in keyValuePairs.OrderBy(x => x.Key, StringComparer.Ordinal))
{
if (cancellationToken.IsCancellationRequested)
return sb.ToString();