diff --git a/ChatTwo/Configuration.cs b/ChatTwo/Configuration.cs index e9b8faa..451020a 100755 --- a/ChatTwo/Configuration.cs +++ b/ChatTwo/Configuration.cs @@ -33,6 +33,7 @@ internal class Configuration : IPluginConfiguration { public bool LoadPreviousSession; public bool FilterIncludePreviousSessions; public bool SharedMode; + public bool SortAutoTranslate; public bool FontsEnabled = true; public float FontSize = 17f; @@ -67,6 +68,7 @@ internal class Configuration : IPluginConfiguration { this.LoadPreviousSession = other.LoadPreviousSession; this.FilterIncludePreviousSessions = other.FilterIncludePreviousSessions; this.SharedMode = other.SharedMode; + this.SortAutoTranslate = other.SortAutoTranslate; this.FontsEnabled = other.FontsEnabled; this.FontSize = other.FontSize; this.JapaneseFontSize = other.JapaneseFontSize; diff --git a/ChatTwo/Resources/Language.Designer.cs b/ChatTwo/Resources/Language.Designer.cs index 5d24af5..3e6fca3 100755 --- a/ChatTwo/Resources/Language.Designer.cs +++ b/ChatTwo/Resources/Language.Designer.cs @@ -1,7 +1,6 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -12,46 +11,32 @@ namespace ChatTwo.Resources { using System; - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Language { - private static global::System.Resources.ResourceManager resourceMan; + private static System.Resources.ResourceManager resourceMan; - private static global::System.Globalization.CultureInfo resourceCulture; + private static System.Globalization.CultureInfo resourceCulture; - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Language() { } - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Resources.ResourceManager ResourceManager { get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ChatTwo.Resources.Language", typeof(Language).Assembly); + if (object.Equals(null, resourceMan)) { + System.Resources.ResourceManager temp = new System.Resources.ResourceManager("ChatTwo.Resources.Language", typeof(Language).Assembly); resourceMan = temp; } return resourceMan; } } - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -60,1128 +45,771 @@ namespace ChatTwo.Resources { } } - /// - /// Looks up a localized string similar to Hide chat. - /// - internal static string ChatLog_HideChat { - get { - return ResourceManager.GetString("ChatLog_HideChat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Disabled for this tab.. - /// - internal static string ChatLog_SwitcherDisabled { - get { - return ResourceManager.GetString("ChatLog_SwitcherDisabled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Delete tab. - /// - internal static string ChatLog_Tabs_Delete { - get { - return ResourceManager.GetString("ChatLog_Tabs_Delete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move down. - /// - internal static string ChatLog_Tabs_MoveDown { - get { - return ResourceManager.GetString("ChatLog_Tabs_MoveDown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move left. - /// - internal static string ChatLog_Tabs_MoveLeft { - get { - return ResourceManager.GetString("ChatLog_Tabs_MoveLeft", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move right. - /// - internal static string ChatLog_Tabs_MoveRight { - get { - return ResourceManager.GetString("ChatLog_Tabs_MoveRight", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move up. - /// - internal static string ChatLog_Tabs_MoveUp { - get { - return ResourceManager.GetString("ChatLog_Tabs_MoveUp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Pop out. - /// - internal static string ChatLog_Tabs_PopOut { - get { - return ResourceManager.GetString("ChatLog_Tabs_PopOut", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Alliance Member. - /// - internal static string ChatSource_AllianceMember { - get { - return ResourceManager.GetString("ChatSource_AllianceMember", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Pet (Alliance member). - /// - internal static string ChatSource_AlliancePet { - get { - return ResourceManager.GetString("ChatSource_AlliancePet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Engaged Enemy. - /// - internal static string ChatSource_EngagedEnemy { - get { - return ResourceManager.GetString("ChatSource_EngagedEnemy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Friendly NPC. - /// - internal static string ChatSource_FriendlyNpc { - get { - return ResourceManager.GetString("ChatSource_FriendlyNpc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Other. - /// - internal static string ChatSource_Other { - get { - return ResourceManager.GetString("ChatSource_Other", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Pet (Other). - /// - internal static string ChatSource_OtherPet { - get { - return ResourceManager.GetString("ChatSource_OtherPet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Party Member. - /// - internal static string ChatSource_PartyMember { - get { - return ResourceManager.GetString("ChatSource_PartyMember", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Pet (Party). - /// - internal static string ChatSource_PartyPet { - get { - return ResourceManager.GetString("ChatSource_PartyPet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Self. - /// - internal static string ChatSource_Self { - get { - return ResourceManager.GetString("ChatSource_Self", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Pet (Self). - /// - internal static string ChatSource_SelfPet { - get { - return ResourceManager.GetString("ChatSource_SelfPet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unengaged Enemy. - /// - internal static string ChatSource_UnengagedEnemy { - get { - return ResourceManager.GetString("ChatSource_UnengagedEnemy", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Left. - /// - internal static string CommandHelpSide_Left { - get { - return ResourceManager.GetString("CommandHelpSide_Left", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to None. - /// - internal static string CommandHelpSide_None { - get { - return ResourceManager.GetString("CommandHelpSide_None", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Right. - /// - internal static string CommandHelpSide_Right { - get { - return ResourceManager.GetString("CommandHelpSide_Right", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Flexible. - /// - internal static string KeybindMode_Flexible_Name { - get { - return ResourceManager.GetString("KeybindMode_Flexible_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Process keybinds with modifiers even if other modifiers are pressed.. - /// - internal static string KeybindMode_Flexible_Tooltip { - get { - return ResourceManager.GetString("KeybindMode_Flexible_Tooltip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Strict. - /// - internal static string KeybindMode_Strict_Name { - get { - return ResourceManager.GetString("KeybindMode_Strict_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Only process keybinds with modifiers if no other modifiers are pressed.. - /// - internal static string KeybindMode_Strict_Tooltip { - get { - return ResourceManager.GetString("KeybindMode_Strict_Tooltip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use Dalamud's default language. - /// - internal static string LanguageOverride_None { - get { - return ResourceManager.GetString("LanguageOverride_None", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Click the button to the left to see what's being worked on and what's next.. - /// - internal static string Options_About_ClickUp { - get { - return ResourceManager.GetString("Options_About_ClickUp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Click the button to the left to help translate {0}.. - /// - internal static string Options_About_CrowdIn { - get { - return ResourceManager.GetString("Options_About_CrowdIn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} is a project to completely recreate the in-game chat and make it even better.. - /// - internal static string Options_About_Opening { - get { - return ResourceManager.GetString("Options_About_Opening", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to About. - /// - internal static string Options_About_Tab { - get { - return ResourceManager.GetString("Options_About_Tab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Translators. - /// - internal static string Options_About_Translators { - get { - return ResourceManager.GetString("Options_About_Translators", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Allow moving chat. - /// - internal static string Options_CanMove_Name { - get { - return ResourceManager.GetString("Options_CanMove_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Allow resizing chat. - /// - internal static string Options_CanResize_Name { - get { - return ResourceManager.GetString("Options_CanResize_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Import from game. - /// - internal static string Options_ChatColours_Import { - get { - return ResourceManager.GetString("Options_ChatColours_Import", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reset to default. - /// - internal static string Options_ChatColours_Reset { - get { - return ResourceManager.GetString("Options_ChatColours_Reset", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Chat colours. - /// - internal static string Options_ChatColours_Tab { - get { - return ResourceManager.GetString("Options_ChatColours_Tab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The side of {0} to display help for commands on.. - /// - internal static string Options_CommandHelpSide_Description { - get { - return ResourceManager.GetString("Options_CommandHelpSide_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Command help side. - /// - internal static string Options_CommandHelpSide_Name { - get { - return ResourceManager.GetString("Options_CommandHelpSide_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Advanced. - /// - internal static string Options_Database_Advanced { - get { - return ResourceManager.GetString("Options_Database_Advanced", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Do not click these buttons unless you know what you're doing.. - /// - internal static string Options_Database_Advanced_Warning { - get { - return ResourceManager.GetString("Options_Database_Advanced_Warning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Database. - /// - internal static string Options_Database_Tab { - get { - return ResourceManager.GetString("Options_Database_Tab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to If battle messages are saved to the database, the size of the database will grow much faster, and there will be a noticeable freeze when saving settings. It is recommended to leave this disabled.. - /// - internal static string Options_DatabaseBattleMessages_Description { - get { - return ResourceManager.GetString("Options_DatabaseBattleMessages_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save battle messages in database. - /// - internal static string Options_DatabaseBattleMessages_Name { - get { - return ResourceManager.GetString("Options_DatabaseBattleMessages_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display. - /// - internal static string Options_Display_Tab { - get { - return ResourceManager.GetString("Options_Display_Tab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Include messages from before the game was launched when populating tabs. Tabs are populated when the settings are saved.. - /// - internal static string Options_FilterIncludePreviousSessions_Description { - get { - return ResourceManager.GetString("Options_FilterIncludePreviousSessions_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Include previous sessions when populating tabs. - /// - internal static string Options_FilterIncludePreviousSessions_Name { - get { - return ResourceManager.GetString("Options_FilterIncludePreviousSessions_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The font {0} will use to display non-Japanese text.. - /// - internal static string Options_Font_Description { - get { - return ResourceManager.GetString("Options_Font_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Font. - /// - internal static string Options_Font_Name { - get { - return ResourceManager.GetString("Options_Font_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Using certain system fonts may crash your game. You have been warned.. - /// - internal static string Options_Font_Warning { - get { - return ResourceManager.GetString("Options_Font_Warning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Fonts. - /// - internal static string Options_Fonts_Tab { - get { - return ResourceManager.GetString("Options_Fonts_Tab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enable custom fonts. - /// - internal static string Options_FontsEnabled { - get { - return ResourceManager.GetString("Options_FontsEnabled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Font size. - /// - internal static string Options_FontSize_Name { - get { - return ResourceManager.GetString("Options_FontSize_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hide the in-game chat window when the plugin is active.. - /// - internal static string Options_HideChat_Description { - get { - return ResourceManager.GetString("Options_HideChat_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hide vanilla chat. - /// internal static string Options_HideChat_Name { get { return ResourceManager.GetString("Options_HideChat_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Hide {0} during cutscenes.. - /// - internal static string Options_HideDuringCutscenes_Description { + internal static string Options_HideChat_Description { get { - return ResourceManager.GetString("Options_HideDuringCutscenes_Description", resourceCulture); + return ResourceManager.GetString("Options_HideChat_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Hide chat during cutscenes. - /// internal static string Options_HideDuringCutscenes_Name { get { return ResourceManager.GetString("Options_HideDuringCutscenes_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Hide timestamps when previous messages have the same timestamp.. - /// - internal static string Options_HideSameTimestamps_Description { + internal static string Options_HideDuringCutscenes_Description { get { - return ResourceManager.GetString("Options_HideSameTimestamps_Description", resourceCulture); + return ResourceManager.GetString("Options_HideDuringCutscenes_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Hide timestamps when redundant. - /// - internal static string Options_HideSameTimestamps_Name { - get { - return ResourceManager.GetString("Options_HideSameTimestamps_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hide {0} when you are not logged in to a character.. - /// - internal static string Options_HideWhenNotLoggedIn_Description { - get { - return ResourceManager.GetString("Options_HideWhenNotLoggedIn_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hide when not logged in. - /// - internal static string Options_HideWhenNotLoggedIn_Name { - get { - return ResourceManager.GetString("Options_HideWhenNotLoggedIn_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hide {0} when the game UI is hidden.. - /// - internal static string Options_HideWhenUiHidden_Description { - get { - return ResourceManager.GetString("Options_HideWhenUiHidden_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Hide when game UI is hidden. - /// - internal static string Options_HideWhenUiHidden_Name { - get { - return ResourceManager.GetString("Options_HideWhenUiHidden_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The font {0} will use to display Japanese text.. - /// - internal static string Options_JapaneseFont_Description { - get { - return ResourceManager.GetString("Options_JapaneseFont_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Japanese font. - /// - internal static string Options_JapaneseFont_Name { - get { - return ResourceManager.GetString("Options_JapaneseFont_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Japanese font size. - /// - internal static string Options_JapaneseFontSize_Name { - get { - return ResourceManager.GetString("Options_JapaneseFontSize_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The way in which {0} should handle keybinds.. - /// - internal static string Options_KeybindMode_Description { - get { - return ResourceManager.GetString("Options_KeybindMode_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Keybind mode. - /// - internal static string Options_KeybindMode_Name { - get { - return ResourceManager.GetString("Options_KeybindMode_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The language to display {0} in.. - /// - internal static string Options_Language_Description { - get { - return ResourceManager.GetString("Options_Language_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Language. - /// - internal static string Options_Language_Name { - get { - return ResourceManager.GetString("Options_Language_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to After logging in, populate the chat with the messages from when you last logged off.. - /// - internal static string Options_LoadPreviousSession_Description { - get { - return ResourceManager.GetString("Options_LoadPreviousSession_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display previous chat session on login. - /// - internal static string Options_LoadPreviousSession_Name { - get { - return ResourceManager.GetString("Options_LoadPreviousSession_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Miscellaneous. - /// - internal static string Options_Miscellaneous_Tab { - get { - return ResourceManager.GetString("Options_Miscellaneous_Tab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Reduce the spacing between messages.. - /// - internal static string Options_MoreCompactPretty_Description { - get { - return ResourceManager.GetString("Options_MoreCompactPretty_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to More compact modern layout. - /// - internal static string Options_MoreCompactPretty_Name { - get { - return ResourceManager.GetString("Options_MoreCompactPretty_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show in-game item tooltips when hovering over items in {0}.. - /// - internal static string Options_NativeItemTooltips_Description { - get { - return ResourceManager.GetString("Options_NativeItemTooltips_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show native item tooltips. - /// internal static string Options_NativeItemTooltips_Name { get { return ResourceManager.GetString("Options_NativeItemTooltips_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Display messages in a more modern style.. - /// - internal static string Options_PrettierTimestamps_Description { + internal static string Options_NativeItemTooltips_Description { get { - return ResourceManager.GetString("Options_PrettierTimestamps_Description", resourceCulture); + return ResourceManager.GetString("Options_NativeItemTooltips_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Use modern layout. - /// - internal static string Options_PrettierTimestamps_Name { - get { - return ResourceManager.GetString("Options_PrettierTimestamps_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Allow multiple clients to run {0} at the same time, sharing the same database.. - /// - internal static string Options_SharedMode_Description { - get { - return ResourceManager.GetString("Options_SharedMode_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enable multi-client mode. - /// - internal static string Options_SharedMode_Name { - get { - return ResourceManager.GetString("Options_SharedMode_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This option is not recommended. No support will be offered if you enable this option. This option will hurt the performance of {0}.. - /// - internal static string Options_SharedMode_Warning { - get { - return ResourceManager.GetString("Options_SharedMode_Warning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show the Novice Network join button next to the settings button if logged in as a mentor.. - /// - internal static string Options_ShowNoviceNetwork_Description { - get { - return ResourceManager.GetString("Options_ShowNoviceNetwork_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show Novice Network join button. - /// - internal static string Options_ShowNoviceNetwork_Name { - get { - return ResourceManager.GetString("Options_ShowNoviceNetwork_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show title bar for popped-out tabs. - /// - internal static string Options_ShowPopOutTitleBar_Name { - get { - return ResourceManager.GetString("Options_ShowPopOutTitleBar_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show title bar for chat. - /// - internal static string Options_ShowTitleBar_Name { - get { - return ResourceManager.GetString("Options_ShowTitleBar_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show tabs in {0} as a sidebar instead of a bar at the top.. - /// - internal static string Options_SidebarTabView_Description { - get { - return ResourceManager.GetString("Options_SidebarTabView_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show tabs in a sidebar. - /// internal static string Options_SidebarTabView_Name { get { return ResourceManager.GetString("Options_SidebarTabView_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to The font size to use for game symbols.. - /// - internal static string Options_SymbolsFontSize_Description { + internal static string Options_SidebarTabView_Description { get { - return ResourceManager.GetString("Options_SymbolsFontSize_Description", resourceCulture); + return ResourceManager.GetString("Options_SidebarTabView_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Symbols font size. - /// - internal static string Options_SymbolsFontSize_Name { + internal static string Options_PrettierTimestamps_Name { get { - return ResourceManager.GetString("Options_SymbolsFontSize_Name", resourceCulture); + return ResourceManager.GetString("Options_PrettierTimestamps_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Add. - /// - internal static string Options_Tabs_Add { + internal static string Options_PrettierTimestamps_Description { get { - return ResourceManager.GetString("Options_Tabs_Add", resourceCulture); + return ResourceManager.GetString("Options_PrettierTimestamps_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Channels. - /// - internal static string Options_Tabs_Channels { + internal static string Options_MoreCompactPretty_Name { get { - return ResourceManager.GetString("Options_Tabs_Channels", resourceCulture); + return ResourceManager.GetString("Options_MoreCompactPretty_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Announcements. - /// - internal static string Options_Tabs_ChannelTypes_Announcements { + internal static string Options_MoreCompactPretty_Description { get { - return ResourceManager.GetString("Options_Tabs_ChannelTypes_Announcements", resourceCulture); + return ResourceManager.GetString("Options_MoreCompactPretty_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Battle. - /// - internal static string Options_Tabs_ChannelTypes_Battle { + internal static string Options_ShowNoviceNetwork_Name { get { - return ResourceManager.GetString("Options_Tabs_ChannelTypes_Battle", resourceCulture); + return ResourceManager.GetString("Options_ShowNoviceNetwork_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Chat. - /// - internal static string Options_Tabs_ChannelTypes_Chat { + internal static string Options_ShowNoviceNetwork_Description { get { - return ResourceManager.GetString("Options_Tabs_ChannelTypes_Chat", resourceCulture); + return ResourceManager.GetString("Options_ShowNoviceNetwork_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Special. - /// - internal static string Options_Tabs_ChannelTypes_Special { + internal static string Options_FontSize_Name { get { - return ResourceManager.GetString("Options_Tabs_ChannelTypes_Special", resourceCulture); + return ResourceManager.GetString("Options_FontSize_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Delete. - /// - internal static string Options_Tabs_Delete { - get { - return ResourceManager.GetString("Options_Tabs_Delete", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use different opacity than main window. - /// - internal static string Options_Tabs_IndependentOpacity { - get { - return ResourceManager.GetString("Options_Tabs_IndependentOpacity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Input channel. - /// - internal static string Options_Tabs_InputChannel { - get { - return ResourceManager.GetString("Options_Tabs_InputChannel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move down. - /// - internal static string Options_Tabs_MoveDown { - get { - return ResourceManager.GetString("Options_Tabs_MoveDown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Move up. - /// - internal static string Options_Tabs_MoveUp { - get { - return ResourceManager.GetString("Options_Tabs_MoveUp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Name. - /// - internal static string Options_Tabs_Name { - get { - return ResourceManager.GetString("Options_Tabs_Name", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New tab. - /// - internal static string Options_Tabs_NewTab { - get { - return ResourceManager.GetString("Options_Tabs_NewTab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <None>. - /// - internal static string Options_Tabs_NoInputChannel { - get { - return ResourceManager.GetString("Options_Tabs_NoInputChannel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Opacity. - /// - internal static string Options_Tabs_Opacity { - get { - return ResourceManager.GetString("Options_Tabs_Opacity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Display in separate window. - /// - internal static string Options_Tabs_PopOut { - get { - return ResourceManager.GetString("Options_Tabs_PopOut", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Preset: {0}. - /// - internal static string Options_Tabs_Preset { - get { - return ResourceManager.GetString("Options_Tabs_Preset", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Show timestamps. - /// - internal static string Options_Tabs_ShowTimestamps { - get { - return ResourceManager.GetString("Options_Tabs_ShowTimestamps", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Tabs. - /// - internal static string Options_Tabs_Tab { - get { - return ResourceManager.GetString("Options_Tabs_Tab", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unread mode. - /// - internal static string Options_Tabs_UnreadMode { - get { - return ResourceManager.GetString("Options_Tabs_UnreadMode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Window opacity. - /// internal static string Options_WindowOpacity_Name { get { return ResourceManager.GetString("Options_WindowOpacity_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Discard. - /// - internal static string Settings_Discard { + internal static string Options_CanMove_Name { get { - return ResourceManager.GetString("Settings_Discard", resourceCulture); + return ResourceManager.GetString("Options_CanMove_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Support {0} on Ko-fi. - /// - internal static string Settings_Kofi { + internal static string Options_CanResize_Name { get { - return ResourceManager.GetString("Settings_Kofi", resourceCulture); + return ResourceManager.GetString("Options_CanResize_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Save. - /// - internal static string Settings_Save { + internal static string Options_ShowTitleBar_Name { get { - return ResourceManager.GetString("Settings_Save", resourceCulture); + return ResourceManager.GetString("Options_ShowTitleBar_Name", resourceCulture); } } - /// - /// Looks up a localized string similar to Save and close. - /// - internal static string Settings_SaveAndClose { + internal static string Options_Display_Tab { get { - return ResourceManager.GetString("Settings_SaveAndClose", resourceCulture); + return ResourceManager.GetString("Options_Display_Tab", resourceCulture); } } - /// - /// Looks up a localized string similar to {0} settings. - /// - internal static string Settings_Title { + internal static string Options_ChatColours_Tab { get { - return ResourceManager.GetString("Settings_Title", resourceCulture); + return ResourceManager.GetString("Options_ChatColours_Tab", resourceCulture); } } - /// - /// Looks up a localized string similar to New tab. - /// - internal static string Tab_DefaultName { + internal static string Options_ChatColours_Reset { get { - return ResourceManager.GetString("Tab_DefaultName", resourceCulture); + return ResourceManager.GetString("Options_ChatColours_Reset", resourceCulture); } } - /// - /// Looks up a localized string similar to Event. - /// - internal static string Tabs_Presets_Event { + internal static string Options_ChatColours_Import { get { - return ResourceManager.GetString("Tabs_Presets_Event", resourceCulture); + return ResourceManager.GetString("Options_ChatColours_Import", resourceCulture); } } - /// - /// Looks up a localized string similar to General. - /// - internal static string Tabs_Presets_General { + internal static string Options_Tabs_Tab { get { - return ResourceManager.GetString("Tabs_Presets_General", resourceCulture); + return ResourceManager.GetString("Options_Tabs_Tab", resourceCulture); } } - /// - /// Looks up a localized string similar to All. - /// - internal static string UnreadMode_All { + internal static string Options_Tabs_Add { get { - return ResourceManager.GetString("UnreadMode_All", resourceCulture); + return ResourceManager.GetString("Options_Tabs_Add", resourceCulture); + } + } + + internal static string Options_Tabs_Delete { + get { + return ResourceManager.GetString("Options_Tabs_Delete", resourceCulture); + } + } + + internal static string Options_Tabs_MoveUp { + get { + return ResourceManager.GetString("Options_Tabs_MoveUp", resourceCulture); + } + } + + internal static string Options_Tabs_MoveDown { + get { + return ResourceManager.GetString("Options_Tabs_MoveDown", resourceCulture); + } + } + + internal static string Options_Tabs_Name { + get { + return ResourceManager.GetString("Options_Tabs_Name", resourceCulture); + } + } + + internal static string Options_Tabs_ShowTimestamps { + get { + return ResourceManager.GetString("Options_Tabs_ShowTimestamps", resourceCulture); + } + } + + internal static string Options_Tabs_UnreadMode { + get { + return ResourceManager.GetString("Options_Tabs_UnreadMode", resourceCulture); + } + } + + internal static string Options_Tabs_NoInputChannel { + get { + return ResourceManager.GetString("Options_Tabs_NoInputChannel", resourceCulture); + } + } + + internal static string Options_Tabs_InputChannel { + get { + return ResourceManager.GetString("Options_Tabs_InputChannel", resourceCulture); + } + } + + internal static string Options_Tabs_Channels { + get { + return ResourceManager.GetString("Options_Tabs_Channels", resourceCulture); } } - /// - /// Looks up a localized string similar to Always show unread indicators.. - /// internal static string UnreadMode_All_Tooltip { get { return ResourceManager.GetString("UnreadMode_All_Tooltip", resourceCulture); } } - /// - /// Looks up a localized string similar to None. - /// - internal static string UnreadMode_None { + internal static string UnreadMode_Unseen_Tooltip { get { - return ResourceManager.GetString("UnreadMode_None", resourceCulture); + return ResourceManager.GetString("UnreadMode_Unseen_Tooltip", resourceCulture); } } - /// - /// Looks up a localized string similar to Never show unread indicators.. - /// internal static string UnreadMode_None_Tooltip { get { return ResourceManager.GetString("UnreadMode_None_Tooltip", resourceCulture); } } - /// - /// Looks up a localized string similar to Unseen. - /// + internal static string Tab_DefaultName { + get { + return ResourceManager.GetString("Tab_DefaultName", resourceCulture); + } + } + + internal static string Settings_Kofi { + get { + return ResourceManager.GetString("Settings_Kofi", resourceCulture); + } + } + + internal static string Settings_SaveAndClose { + get { + return ResourceManager.GetString("Settings_SaveAndClose", resourceCulture); + } + } + + internal static string Settings_Save { + get { + return ResourceManager.GetString("Settings_Save", resourceCulture); + } + } + + internal static string Settings_Discard { + get { + return ResourceManager.GetString("Settings_Discard", resourceCulture); + } + } + + internal static string Settings_Title { + get { + return ResourceManager.GetString("Settings_Title", resourceCulture); + } + } + + internal static string ChatLog_SwitcherDisabled { + get { + return ResourceManager.GetString("ChatLog_SwitcherDisabled", resourceCulture); + } + } + + internal static string ChatLog_HideChat { + get { + return ResourceManager.GetString("ChatLog_HideChat", resourceCulture); + } + } + + internal static string ChatLog_Tabs_MoveUp { + get { + return ResourceManager.GetString("ChatLog_Tabs_MoveUp", resourceCulture); + } + } + + internal static string ChatLog_Tabs_MoveLeft { + get { + return ResourceManager.GetString("ChatLog_Tabs_MoveLeft", resourceCulture); + } + } + + internal static string ChatLog_Tabs_MoveDown { + get { + return ResourceManager.GetString("ChatLog_Tabs_MoveDown", resourceCulture); + } + } + + internal static string ChatLog_Tabs_MoveRight { + get { + return ResourceManager.GetString("ChatLog_Tabs_MoveRight", resourceCulture); + } + } + + internal static string Options_Tabs_ChannelTypes_Chat { + get { + return ResourceManager.GetString("Options_Tabs_ChannelTypes_Chat", resourceCulture); + } + } + + internal static string Options_Tabs_ChannelTypes_Battle { + get { + return ResourceManager.GetString("Options_Tabs_ChannelTypes_Battle", resourceCulture); + } + } + + internal static string Options_Tabs_ChannelTypes_Announcements { + get { + return ResourceManager.GetString("Options_Tabs_ChannelTypes_Announcements", resourceCulture); + } + } + + internal static string UnreadMode_All { + get { + return ResourceManager.GetString("UnreadMode_All", resourceCulture); + } + } + internal static string UnreadMode_Unseen { get { return ResourceManager.GetString("UnreadMode_Unseen", resourceCulture); } } - /// - /// Looks up a localized string similar to Only show unread indicators for messages you haven't seen.. - /// - internal static string UnreadMode_Unseen_Tooltip { + internal static string UnreadMode_None { get { - return ResourceManager.GetString("UnreadMode_Unseen_Tooltip", resourceCulture); + return ResourceManager.GetString("UnreadMode_None", resourceCulture); + } + } + + internal static string ChatSource_Self { + get { + return ResourceManager.GetString("ChatSource_Self", resourceCulture); + } + } + + internal static string ChatSource_PartyMember { + get { + return ResourceManager.GetString("ChatSource_PartyMember", resourceCulture); + } + } + + internal static string ChatSource_AllianceMember { + get { + return ResourceManager.GetString("ChatSource_AllianceMember", resourceCulture); + } + } + + internal static string ChatSource_Other { + get { + return ResourceManager.GetString("ChatSource_Other", resourceCulture); + } + } + + internal static string ChatSource_EngagedEnemy { + get { + return ResourceManager.GetString("ChatSource_EngagedEnemy", resourceCulture); + } + } + + internal static string ChatSource_UnengagedEnemy { + get { + return ResourceManager.GetString("ChatSource_UnengagedEnemy", resourceCulture); + } + } + + internal static string ChatSource_FriendlyNpc { + get { + return ResourceManager.GetString("ChatSource_FriendlyNpc", resourceCulture); + } + } + + internal static string ChatSource_SelfPet { + get { + return ResourceManager.GetString("ChatSource_SelfPet", resourceCulture); + } + } + + internal static string ChatSource_PartyPet { + get { + return ResourceManager.GetString("ChatSource_PartyPet", resourceCulture); + } + } + + internal static string ChatSource_AlliancePet { + get { + return ResourceManager.GetString("ChatSource_AlliancePet", resourceCulture); + } + } + + internal static string ChatSource_OtherPet { + get { + return ResourceManager.GetString("ChatSource_OtherPet", resourceCulture); + } + } + + internal static string Options_Font_Name { + get { + return ResourceManager.GetString("Options_Font_Name", resourceCulture); + } + } + + internal static string Options_JapaneseFont_Name { + get { + return ResourceManager.GetString("Options_JapaneseFont_Name", resourceCulture); + } + } + + internal static string Options_Font_Description { + get { + return ResourceManager.GetString("Options_Font_Description", resourceCulture); + } + } + + internal static string Options_Font_Warning { + get { + return ResourceManager.GetString("Options_Font_Warning", resourceCulture); + } + } + + internal static string Options_JapaneseFont_Description { + get { + return ResourceManager.GetString("Options_JapaneseFont_Description", resourceCulture); + } + } + + internal static string Options_Tabs_ChannelTypes_Special { + get { + return ResourceManager.GetString("Options_Tabs_ChannelTypes_Special", resourceCulture); + } + } + + internal static string Options_Fonts_Tab { + get { + return ResourceManager.GetString("Options_Fonts_Tab", resourceCulture); + } + } + + internal static string Options_SymbolsFontSize_Name { + get { + return ResourceManager.GetString("Options_SymbolsFontSize_Name", resourceCulture); + } + } + + internal static string Options_JapaneseFontSize_Name { + get { + return ResourceManager.GetString("Options_JapaneseFontSize_Name", resourceCulture); + } + } + + internal static string Options_SymbolsFontSize_Description { + get { + return ResourceManager.GetString("Options_SymbolsFontSize_Description", resourceCulture); + } + } + + internal static string ChatLog_Tabs_Delete { + get { + return ResourceManager.GetString("ChatLog_Tabs_Delete", resourceCulture); + } + } + + internal static string Options_HideWhenNotLoggedIn_Name { + get { + return ResourceManager.GetString("Options_HideWhenNotLoggedIn_Name", resourceCulture); + } + } + + internal static string Options_HideWhenNotLoggedIn_Description { + get { + return ResourceManager.GetString("Options_HideWhenNotLoggedIn_Description", resourceCulture); + } + } + + internal static string Tabs_Presets_General { + get { + return ResourceManager.GetString("Tabs_Presets_General", resourceCulture); + } + } + + internal static string Options_Tabs_Preset { + get { + return ResourceManager.GetString("Options_Tabs_Preset", resourceCulture); + } + } + + internal static string Tabs_Presets_Event { + get { + return ResourceManager.GetString("Tabs_Presets_Event", resourceCulture); + } + } + + internal static string Options_Tabs_NewTab { + get { + return ResourceManager.GetString("Options_Tabs_NewTab", resourceCulture); + } + } + + internal static string Options_About_Tab { + get { + return ResourceManager.GetString("Options_About_Tab", resourceCulture); + } + } + + internal static string Options_About_Opening { + get { + return ResourceManager.GetString("Options_About_Opening", resourceCulture); + } + } + + internal static string Options_About_ClickUp { + get { + return ResourceManager.GetString("Options_About_ClickUp", resourceCulture); + } + } + + internal static string Options_About_CrowdIn { + get { + return ResourceManager.GetString("Options_About_CrowdIn", resourceCulture); + } + } + + internal static string Options_About_Translators { + get { + return ResourceManager.GetString("Options_About_Translators", resourceCulture); + } + } + + internal static string CommandHelpSide_None { + get { + return ResourceManager.GetString("CommandHelpSide_None", resourceCulture); + } + } + + internal static string CommandHelpSide_Left { + get { + return ResourceManager.GetString("CommandHelpSide_Left", resourceCulture); + } + } + + internal static string CommandHelpSide_Right { + get { + return ResourceManager.GetString("CommandHelpSide_Right", resourceCulture); + } + } + + internal static string Options_CommandHelpSide_Name { + get { + return ResourceManager.GetString("Options_CommandHelpSide_Name", resourceCulture); + } + } + + internal static string Options_CommandHelpSide_Description { + get { + return ResourceManager.GetString("Options_CommandHelpSide_Description", resourceCulture); + } + } + + internal static string Options_HideWhenUiHidden_Name { + get { + return ResourceManager.GetString("Options_HideWhenUiHidden_Name", resourceCulture); + } + } + + internal static string Options_HideWhenUiHidden_Description { + get { + return ResourceManager.GetString("Options_HideWhenUiHidden_Description", resourceCulture); + } + } + + internal static string Options_KeybindMode_Name { + get { + return ResourceManager.GetString("Options_KeybindMode_Name", resourceCulture); + } + } + + internal static string Options_KeybindMode_Description { + get { + return ResourceManager.GetString("Options_KeybindMode_Description", resourceCulture); + } + } + + internal static string Options_Miscellaneous_Tab { + get { + return ResourceManager.GetString("Options_Miscellaneous_Tab", resourceCulture); + } + } + + internal static string LanguageOverride_None { + get { + return ResourceManager.GetString("LanguageOverride_None", resourceCulture); + } + } + + internal static string KeybindMode_Flexible_Name { + get { + return ResourceManager.GetString("KeybindMode_Flexible_Name", resourceCulture); + } + } + + internal static string KeybindMode_Strict_Name { + get { + return ResourceManager.GetString("KeybindMode_Strict_Name", resourceCulture); + } + } + + internal static string KeybindMode_Flexible_Tooltip { + get { + return ResourceManager.GetString("KeybindMode_Flexible_Tooltip", resourceCulture); + } + } + + internal static string KeybindMode_Strict_Tooltip { + get { + return ResourceManager.GetString("KeybindMode_Strict_Tooltip", resourceCulture); + } + } + + internal static string Options_Language_Name { + get { + return ResourceManager.GetString("Options_Language_Name", resourceCulture); + } + } + + internal static string Options_Language_Description { + get { + return ResourceManager.GetString("Options_Language_Description", resourceCulture); + } + } + + internal static string Options_DatabaseBattleMessages_Name { + get { + return ResourceManager.GetString("Options_DatabaseBattleMessages_Name", resourceCulture); + } + } + + internal static string Options_DatabaseBattleMessages_Description { + get { + return ResourceManager.GetString("Options_DatabaseBattleMessages_Description", resourceCulture); + } + } + + internal static string Options_LoadPreviousSession_Name { + get { + return ResourceManager.GetString("Options_LoadPreviousSession_Name", resourceCulture); + } + } + + internal static string Options_LoadPreviousSession_Description { + get { + return ResourceManager.GetString("Options_LoadPreviousSession_Description", resourceCulture); + } + } + + internal static string Options_Database_Tab { + get { + return ResourceManager.GetString("Options_Database_Tab", resourceCulture); + } + } + + internal static string Options_FilterIncludePreviousSessions_Name { + get { + return ResourceManager.GetString("Options_FilterIncludePreviousSessions_Name", resourceCulture); + } + } + + internal static string Options_FilterIncludePreviousSessions_Description { + get { + return ResourceManager.GetString("Options_FilterIncludePreviousSessions_Description", resourceCulture); + } + } + + internal static string Options_Database_Advanced_Warning { + get { + return ResourceManager.GetString("Options_Database_Advanced_Warning", resourceCulture); + } + } + + internal static string Options_Database_Advanced { + get { + return ResourceManager.GetString("Options_Database_Advanced", resourceCulture); + } + } + + internal static string Options_SharedMode_Name { + get { + return ResourceManager.GetString("Options_SharedMode_Name", resourceCulture); + } + } + + internal static string Options_SharedMode_Description { + get { + return ResourceManager.GetString("Options_SharedMode_Description", resourceCulture); + } + } + + internal static string Options_SharedMode_Warning { + get { + return ResourceManager.GetString("Options_SharedMode_Warning", resourceCulture); + } + } + + internal static string ChatLog_Tabs_PopOut { + get { + return ResourceManager.GetString("ChatLog_Tabs_PopOut", resourceCulture); + } + } + + internal static string Options_HideSameTimestamps_Name { + get { + return ResourceManager.GetString("Options_HideSameTimestamps_Name", resourceCulture); + } + } + + internal static string Options_HideSameTimestamps_Description { + get { + return ResourceManager.GetString("Options_HideSameTimestamps_Description", resourceCulture); + } + } + + internal static string Options_ShowPopOutTitleBar_Name { + get { + return ResourceManager.GetString("Options_ShowPopOutTitleBar_Name", resourceCulture); + } + } + + internal static string Options_Tabs_PopOut { + get { + return ResourceManager.GetString("Options_Tabs_PopOut", resourceCulture); + } + } + + internal static string Options_Tabs_IndependentOpacity { + get { + return ResourceManager.GetString("Options_Tabs_IndependentOpacity", resourceCulture); + } + } + + internal static string Options_Tabs_Opacity { + get { + return ResourceManager.GetString("Options_Tabs_Opacity", resourceCulture); + } + } + + internal static string Options_FontsEnabled { + get { + return ResourceManager.GetString("Options_FontsEnabled", resourceCulture); + } + } + + internal static string AutoTranslate_Search_Hint { + get { + return ResourceManager.GetString("AutoTranslate_Search_Hint", resourceCulture); + } + } + + internal static string Options_SortAutoTranslate_Name { + get { + return ResourceManager.GetString("Options_SortAutoTranslate_Name", resourceCulture); + } + } + + internal static string Options_SortAutoTranslate_Description { + get { + return ResourceManager.GetString("Options_SortAutoTranslate_Description", resourceCulture); } } } diff --git a/ChatTwo/Resources/Language.resx b/ChatTwo/Resources/Language.resx index 133c427..f44f61f 100755 --- a/ChatTwo/Resources/Language.resx +++ b/ChatTwo/Resources/Language.resx @@ -497,4 +497,13 @@ Enable custom fonts + + Search Auto Translate... + + + Sort the Auto Translate list + + + If this is enabled, the Auto Translate list will be sorted alphabetically. + diff --git a/ChatTwo/Ui/ChatLog.cs b/ChatTwo/Ui/ChatLog.cs index 5134266..e8332ff 100755 --- a/ChatTwo/Ui/ChatLog.cs +++ b/ChatTwo/Ui/ChatLog.cs @@ -955,7 +955,7 @@ internal sealed class ChatLog : IUiComponent { return; } - this._autoCompleteList ??= AutoTranslate.Matching(this.Ui.Plugin.DataManager, this._autoCompleteInfo.ToComplete); + this._autoCompleteList ??= AutoTranslate.Matching(this.Ui.Plugin.DataManager, this._autoCompleteInfo.ToComplete, this.Ui.Plugin.Config.SortAutoTranslate); if (this._autoCompleteOpen) { ImGui.OpenPopup(AutoCompleteId); @@ -975,8 +975,8 @@ internal sealed class ChatLog : IUiComponent { } ImGui.SetNextItemWidth(-1); - if (ImGui.InputTextWithHint("##auto-complete-filter", "Search auto translate...", ref this._autoCompleteInfo.ToComplete, 256, ImGuiInputTextFlags.CallbackAlways, this.FixCursor)) { - this._autoCompleteList = AutoTranslate.Matching(this.Ui.Plugin.DataManager, this._autoCompleteInfo.ToComplete); + if (ImGui.InputTextWithHint("##auto-complete-filter", Language.AutoTranslate_Search_Hint, ref this._autoCompleteInfo.ToComplete, 256, ImGuiInputTextFlags.CallbackAlways, this.FixCursor)) { + this._autoCompleteList = AutoTranslate.Matching(this.Ui.Plugin.DataManager, this._autoCompleteInfo.ToComplete, this.Ui.Plugin.Config.SortAutoTranslate); } if (ImGui.IsWindowAppearing()) { diff --git a/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs b/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs index d57e085..5b9dceb 100755 --- a/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs +++ b/ChatTwo/Ui/SettingsTabs/Miscellaneous.cs @@ -58,5 +58,9 @@ internal sealed class Miscellaneous : ISettingsTab { ImGuiUtil.HelpText(string.Format(Language.Options_KeybindMode_Description, Plugin.PluginName)); ImGui.Spacing(); + + ImGui.Checkbox(Language.Options_SortAutoTranslate_Name, ref this.Mutable.SortAutoTranslate); + ImGuiUtil.HelpText(Language.Options_SortAutoTranslate_Description); + ImGui.Spacing(); } } diff --git a/ChatTwo/Util/AutoTranslate.cs b/ChatTwo/Util/AutoTranslate.cs index 1a75822..ebd2a08 100644 --- a/ChatTwo/Util/AutoTranslate.cs +++ b/ChatTwo/Util/AutoTranslate.cs @@ -186,7 +186,7 @@ internal static class AutoTranslate { return list; } - internal static List Matching(DataManager data, string prefix) { + internal static List Matching(DataManager data, string prefix, bool sort) { var wholeMatches = new List(); var prefixMatches = new List(); var otherMatches = new List(); @@ -200,9 +200,16 @@ internal static class AutoTranslate { } } - return wholeMatches.OrderBy(entry => entry.String, StringComparer.OrdinalIgnoreCase) - .Concat(prefixMatches.OrderBy(entry => entry.String, StringComparer.OrdinalIgnoreCase)) - .Concat(otherMatches.OrderBy(entry => entry.String, StringComparer.OrdinalIgnoreCase)) + if (sort) { + return wholeMatches.OrderBy(entry => entry.String, StringComparer.OrdinalIgnoreCase) + .Concat(prefixMatches.OrderBy(entry => entry.String, StringComparer.OrdinalIgnoreCase)) + .Concat(otherMatches.OrderBy(entry => entry.String, StringComparer.OrdinalIgnoreCase)) + .ToList(); + } + + return wholeMatches + .Concat(prefixMatches) + .Concat(otherMatches) .ToList(); }