mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Fixup CommandManager language/regex setter
This commit is contained in:
parent
b3f41c9049
commit
072cee417b
1 changed files with 7 additions and 14 deletions
|
|
@ -31,21 +31,14 @@ namespace Dalamud.Game.Command
|
|||
{
|
||||
this.dalamud = dalamud;
|
||||
|
||||
switch (language)
|
||||
this.currentLangCommandRegex = language switch
|
||||
{
|
||||
case ClientLanguage.Japanese:
|
||||
this.currentLangCommandRegex = this.commandRegexJp;
|
||||
break;
|
||||
case ClientLanguage.English:
|
||||
this.currentLangCommandRegex = this.commandRegexEn;
|
||||
break;
|
||||
case ClientLanguage.German:
|
||||
this.currentLangCommandRegex = this.commandRegexDe;
|
||||
break;
|
||||
case ClientLanguage.French:
|
||||
this.currentLangCommandRegex = this.commandRegexFr;
|
||||
break;
|
||||
}
|
||||
ClientLanguage.Japanese => this.commandRegexJp,
|
||||
ClientLanguage.English => this.commandRegexEn,
|
||||
ClientLanguage.German => this.commandRegexDe,
|
||||
ClientLanguage.French => this.commandRegexFr,
|
||||
_ => this.currentLangCommandRegex,
|
||||
};
|
||||
|
||||
dalamud.Framework.Gui.Chat.CheckMessageHandled += this.OnCheckMessageHandled;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue