mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
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:
parent
6ba5525812
commit
a0403fdbbe
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue