Copy over Bluefissure's support for Simplified Chinese regex

Copying the Simplified Chinese language regexes from https://github.com/Bluefissure/Dalamud/blob/cn/Dalamud/Game/Command/CommandManager.cs#L23
This commit is contained in:
Franz Renatus 2021-09-27 13:00:13 -07:00 committed by GitHub
parent 6ba5525812
commit a0403fdbbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ namespace Dalamud.Game.Command
private readonly Regex commandRegexJp = new(@"^そのコマンドはありません。: (?<command>.+)$", RegexOptions.Compiled);
private readonly Regex commandRegexDe = new(@"^„(?<command>.+)“ existiert nicht als Textkommando\.$", RegexOptions.Compiled);
private readonly Regex commandRegexFr = new(@"^La commande texte “(?<command>.+)” n'existe pas\.$", RegexOptions.Compiled);
private readonly Regex commandRegexCn = new(@"^“(?<command>.+)”出现问题:该命令不存在。$", RegexOptions.Compiled);
private readonly Regex currentLangCommandRegex;
/// <summary>
@ -39,6 +40,7 @@ namespace Dalamud.Game.Command
ClientLanguage.English => this.commandRegexEn,
ClientLanguage.German => this.commandRegexDe,
ClientLanguage.French => this.commandRegexFr,
ClientLanguage.ChineseSimplified => this.commandRegexCn,
_ => this.currentLangCommandRegex,
};