mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 12:16:03 +08:00
fix: language CN will cause handbook error
This commit is contained in:
@@ -155,7 +155,7 @@ public static class HandbookGenerator
|
||||
foreach (var cmd in EntryPoint.CommandManager.CommandInfo)
|
||||
{
|
||||
builder.Append("\t" + cmd.Key);
|
||||
var desc = I18NManager.TranslateAsCertainLang(lang, cmd.Value.Description).Replace("\n", "\n\t\t");
|
||||
var desc = I18NManager.TranslateAsCertainLang(lang == "CN" ? "CHS" : lang, cmd.Value.Description).Replace("\n", "\n\t\t");
|
||||
builder.AppendLine(": " + desc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user