From a0403fdbbe749a2ff4d55ef852b2f3dff93fdafc Mon Sep 17 00:00:00 2001 From: Franz Renatus Date: Mon, 27 Sep 2021 13:00:13 -0700 Subject: [PATCH] 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 --- Dalamud/Game/Command/CommandManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dalamud/Game/Command/CommandManager.cs b/Dalamud/Game/Command/CommandManager.cs index ee4ce33db..23a8dc2ab 100644 --- a/Dalamud/Game/Command/CommandManager.cs +++ b/Dalamud/Game/Command/CommandManager.cs @@ -24,6 +24,7 @@ namespace Dalamud.Game.Command private readonly Regex commandRegexJp = new(@"^そのコマンドはありません。: (?.+)$", RegexOptions.Compiled); private readonly Regex commandRegexDe = new(@"^„(?.+)“ existiert nicht als Textkommando\.$", RegexOptions.Compiled); private readonly Regex commandRegexFr = new(@"^La commande texte “(?.+)” n'existe pas\.$", RegexOptions.Compiled); + private readonly Regex commandRegexCn = new(@"^“(?.+)”出现问题:该命令不存在。$", RegexOptions.Compiled); private readonly Regex currentLangCommandRegex; /// @@ -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, };