mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-16 21:54:16 +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 commandRegexJp = new(@"^そのコマンドはありません。: (?<command>.+)$", RegexOptions.Compiled);
|
||||||
private readonly Regex commandRegexDe = new(@"^„(?<command>.+)“ existiert nicht als Textkommando\.$", 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 commandRegexFr = new(@"^La commande texte “(?<command>.+)” n'existe pas\.$", RegexOptions.Compiled);
|
||||||
|
private readonly Regex commandRegexCn = new(@"^“(?<command>.+)”出现问题:该命令不存在。$", RegexOptions.Compiled);
|
||||||
private readonly Regex currentLangCommandRegex;
|
private readonly Regex currentLangCommandRegex;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -39,6 +40,7 @@ namespace Dalamud.Game.Command
|
||||||
ClientLanguage.English => this.commandRegexEn,
|
ClientLanguage.English => this.commandRegexEn,
|
||||||
ClientLanguage.German => this.commandRegexDe,
|
ClientLanguage.German => this.commandRegexDe,
|
||||||
ClientLanguage.French => this.commandRegexFr,
|
ClientLanguage.French => this.commandRegexFr,
|
||||||
|
ClientLanguage.ChineseSimplified => this.commandRegexCn,
|
||||||
_ => this.currentLangCommandRegex,
|
_ => this.currentLangCommandRegex,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue