mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 11:27:21 +00:00
Fixed plugin values which depended on the region settings of the computer (#1194)
This commit is contained in:
1 parent
65d50de033
commit
a1b493cb13
20 files changed
+397
-137
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user