Added the BeyondFacts Lab as a prototype (#1175)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-08 19:49:46 +01:00
1 parent db8dae1cf6
commit b6c3fbb5db
90 files changed
+5936 -209

No files matched your search

+7 -2
View File
@@ -15,9 +15,14 @@ public static class LuaTable
if (cancellationToken.IsCancellationRequested)
return sb.ToString();
//
// A text with several lines, such as a notice in Markdown, keeps its line breaks, which the
// assignment below escapes. Lua ends a comment at the end of its line, though, so the comment
// gets the text on one line:
//
var key = kvp.Key;
var value = kvp.Value.Replace("\n", " ").Trim();
var commentValue = commentContent is null ? value : commentContent.GetValueOrDefault(key, value);
var value = I18NKeyHash.NormalizeLineEndings(kvp.Value).Trim();
var commentValue = I18NKeyHash.NormalizeLineEndings(commentContent is null ? value : commentContent.GetValueOrDefault(key, value)).Replace("\n", " ");
// Remove the "UI_TEXT_CONTENT." prefix from the key:
const string UI_TEXT_CONTENT = "UI_TEXT_CONTENT.";