More i18n

Strings for player kick/ban, anti-cheating and server logs
This commit is contained in:
SGKoishi 2022-11-02 13:40:32 -07:00
parent d38046d74b
commit fde43a7730
No known key found for this signature in database
GPG key ID: 8FFC399070653828
10 changed files with 208 additions and 198 deletions

View file

@ -527,7 +527,7 @@ namespace TShockAPI
var descattr =
field.GetCustomAttributes(false).FirstOrDefault(o => o is DescriptionAttribute) as DescriptionAttribute;
var desc = descattr != null && !string.IsNullOrWhiteSpace(descattr.Description) ? descattr.Description : "None";
var desc = descattr != null && !string.IsNullOrWhiteSpace(descattr.Description) ? descattr.Description : GetString("No description available.");
var commands = GetCommands(name);
foreach (var c in commands)
@ -542,9 +542,9 @@ namespace TShockAPI
c =>
c.Name + (c.Names.Count > 1 ? " ({0})".SFormat(string.Join(" ", c.Names.ToArray(), 1, c.Names.Count - 1)) : ""));
sb.AppendLine("## {0}".SFormat(name));
sb.AppendLine("{0}".SFormat(desc));
sb.AppendLine("* **Commands**: `{0}`".SFormat(strs.Count() > 0 ? string.Join(", ", strs) : "None"));
sb.AppendLine($"## {name}");
sb.AppendLine($"{desc}");
sb.AppendLine(GetString("* **Commands**: `{0}`", strs.Count() > 0 ? string.Join(", ", strs) : GetString("No associated commands.")));
sb.AppendLine();
}