diff --git a/Echoglossian.cs b/Echoglossian.cs index 07b3468..041d50d 100644 --- a/Echoglossian.cs +++ b/Echoglossian.cs @@ -279,6 +279,7 @@ public Echoglossian() // Disabling BattleTalk translation by default if the language is not supported by the game font while we fix the overlays this.configuration.TranslateBattleTalk = this.configuration.OverlayOnlyLanguage ? false : true; + this.configuration.UseImGuiForBattleTalk = false; } /// diff --git a/Echoglossian.xml b/Echoglossian.xml index eb522c6..6fa3ac9 100644 --- a/Echoglossian.xml +++ b/Echoglossian.xml @@ -279,6 +279,11 @@ Looks up a localized string similar to ChatGPT API Key. + + + Looks up a localized string similar to Click here to create a OpenAi API Key. + + Looks up a localized resource of type System.Byte[]. diff --git a/MultilingualResources/Echoglossian.da.xlf b/MultilingualResources/Echoglossian.da.xlf index d3ffab8..a2740b9 100644 --- a/MultilingualResources/Echoglossian.da.xlf +++ b/MultilingualResources/Echoglossian.da.xlf @@ -430,6 +430,10 @@ Settings for ChatGPT Indstillinger for ChatGPT + + Click here to create a OpenAi API Key + Klik her for at oprette en OpenAi API-nøgle + diff --git a/MultilingualResources/Echoglossian.de.xlf b/MultilingualResources/Echoglossian.de.xlf index ccc7f77..2103669 100644 --- a/MultilingualResources/Echoglossian.de.xlf +++ b/MultilingualResources/Echoglossian.de.xlf @@ -436,6 +436,10 @@ Settings for ChatGPT Einstellungen für ChatGPT + + Click here to create a OpenAi API Key + Klicken Sie hier, um einen OpenAi API-Schlüssel zu erstellen + diff --git a/MultilingualResources/Echoglossian.el.xlf b/MultilingualResources/Echoglossian.el.xlf index 252707b..73dbd60 100644 --- a/MultilingualResources/Echoglossian.el.xlf +++ b/MultilingualResources/Echoglossian.el.xlf @@ -429,6 +429,10 @@ Settings for ChatGPT Ρυθμίσεις για το ChatGPT + + Click here to create a OpenAi API Key + Κάντε κλικ εδώ για να δημιουργήσετε ένα κλειδί API OpenAi + diff --git a/MultilingualResources/Echoglossian.es.xlf b/MultilingualResources/Echoglossian.es.xlf index eae1853..65011b4 100644 --- a/MultilingualResources/Echoglossian.es.xlf +++ b/MultilingualResources/Echoglossian.es.xlf @@ -430,6 +430,10 @@ Settings for ChatGPT Configuración de ChatGPT + + Click here to create a OpenAi API Key + Haga clic aquí para crear una clave API de OpenAi + diff --git a/MultilingualResources/Echoglossian.eu.xlf b/MultilingualResources/Echoglossian.eu.xlf index 5705a53..b1545d2 100644 --- a/MultilingualResources/Echoglossian.eu.xlf +++ b/MultilingualResources/Echoglossian.eu.xlf @@ -429,6 +429,10 @@ Settings for ChatGPT ChatGPTren konfigurazioa + + Click here to create a OpenAi API Key + Egin klik hemen OpenAi-ren API klabe bat sortzeko + diff --git a/MultilingualResources/Echoglossian.fr.xlf b/MultilingualResources/Echoglossian.fr.xlf index 1b29e76..14069c8 100644 --- a/MultilingualResources/Echoglossian.fr.xlf +++ b/MultilingualResources/Echoglossian.fr.xlf @@ -435,6 +435,10 @@ Settings for ChatGPT Paramètres pour ChatGPT + + Click here to create a OpenAi API Key + Cliquez ici pour créer une clé API OpenAi + diff --git a/MultilingualResources/Echoglossian.it.xlf b/MultilingualResources/Echoglossian.it.xlf index 7c263f4..d2e98d3 100644 --- a/MultilingualResources/Echoglossian.it.xlf +++ b/MultilingualResources/Echoglossian.it.xlf @@ -429,6 +429,10 @@ Settings for ChatGPT Impostazioni per ChatGPT + + Click here to create a OpenAi API Key + Clicca qui per creare una chiave API OpenAi + diff --git a/MultilingualResources/Echoglossian.pt-BR.xlf b/MultilingualResources/Echoglossian.pt-BR.xlf index ea942b7..0a79288 100644 --- a/MultilingualResources/Echoglossian.pt-BR.xlf +++ b/MultilingualResources/Echoglossian.pt-BR.xlf @@ -430,6 +430,10 @@ Settings for ChatGPT Configurações para ChatGPT + + Click here to create a OpenAi API Key + Clique aqui para criar uma chave de API OpenAi + diff --git a/MultilingualResources/Echoglossian.pt.xlf b/MultilingualResources/Echoglossian.pt.xlf index ca92cc1..7942f70 100644 --- a/MultilingualResources/Echoglossian.pt.xlf +++ b/MultilingualResources/Echoglossian.pt.xlf @@ -429,6 +429,10 @@ Settings for ChatGPT Configurações para ChatGPT + + Click here to create a OpenAi API Key + Clique aqui para criar uma chave de API OpenAi + diff --git a/MultilingualResources/Echoglossian.ru.xlf b/MultilingualResources/Echoglossian.ru.xlf index 8dfc8b3..0c8c6a5 100644 --- a/MultilingualResources/Echoglossian.ru.xlf +++ b/MultilingualResources/Echoglossian.ru.xlf @@ -429,6 +429,10 @@ Settings for ChatGPT Настройки для ChatGPT + + Click here to create a OpenAi API Key + Нажмите здесь, чтобы создать ключ API OpenAi + diff --git a/PluginUI.cs b/PluginUI.cs index c75fda4..18043e8 100644 --- a/PluginUI.cs +++ b/PluginUI.cs @@ -250,7 +250,7 @@ private void EchoglossianConfigUi() ref this.configuration.TranslateBattleTalk); ImGui.BeginGroup(); - if (this.configuration.OverlayOnlyLanguage) + /*if (this.configuration.OverlayOnlyLanguage) { this.configuration.TranslateBattleTalk = false; // had disabled so no texts are lost while we fix this saveConfig |= @@ -264,7 +264,7 @@ private void EchoglossianConfigUi() saveConfig |= ImGui.Checkbox( Resources.OverlayToggleLabel, ref this.configuration.UseImGuiForBattleTalk); - } + }*/ saveConfig |= ImGui.Checkbox( Resources.TranslateNpcNamesToggle, @@ -585,6 +585,16 @@ private void EchoglossianConfigUi() case 2: ImGui.TextWrapped(Resources.SettingsForChatGptTransText); ImGui.Spacing(); + if (ImGui.Button(Resources.ChatGPTAPIKeyLink)) + { + saveConfig = true; + Process.Start(new ProcessStartInfo + { + FileName = "https://platform.openai.com/settings/profile?tab=api-keys", + UseShellExecute = true, + }); + this.config = false; + } var chatGptApiKey = this.configuration.ChatGptApiKey; if (ImGui.InputText(Resources.ChatGptApiKey, ref chatGptApiKey, 100)) diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 8d33325..3d84ca9 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -114,6 +114,15 @@ public static string ChatGptApiKey { } } + /// + /// Looks up a localized string similar to Click here to create a OpenAi API Key. + /// + public static string ChatGPTAPIKeyLink { + get { + return ResourceManager.GetString("ChatGPTAPIKeyLink", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Byte[]. /// diff --git a/Properties/Resources.da.resx b/Properties/Resources.da.resx index 7fb611b..32f2a4c 100644 --- a/Properties/Resources.da.resx +++ b/Properties/Resources.da.resx @@ -302,4 +302,7 @@ Indstillinger for ChatGPT + + Klik her for at oprette en OpenAi API-nøgle + \ No newline at end of file diff --git a/Properties/Resources.de.resx b/Properties/Resources.de.resx index 16a9d3a..9271ca5 100644 --- a/Properties/Resources.de.resx +++ b/Properties/Resources.de.resx @@ -330,4 +330,7 @@ Einstellungen für ChatGPT + + Klicken Sie hier, um einen OpenAi API-Schlüssel zu erstellen + \ No newline at end of file diff --git a/Properties/Resources.el.resx b/Properties/Resources.el.resx index 30aa1af..425cb6d 100644 --- a/Properties/Resources.el.resx +++ b/Properties/Resources.el.resx @@ -330,4 +330,7 @@ Ρυθμίσεις για το ChatGPT + + Κάντε κλικ εδώ για να δημιουργήσετε ένα κλειδί API OpenAi + \ No newline at end of file diff --git a/Properties/Resources.es.resx b/Properties/Resources.es.resx index 43b5606..b9eab58 100644 --- a/Properties/Resources.es.resx +++ b/Properties/Resources.es.resx @@ -303,4 +303,7 @@ Configuración de ChatGPT + + Haga clic aquí para crear una clave API de OpenAi + \ No newline at end of file diff --git a/Properties/Resources.eu.resx b/Properties/Resources.eu.resx index ad08ad3..16101fc 100644 --- a/Properties/Resources.eu.resx +++ b/Properties/Resources.eu.resx @@ -330,4 +330,7 @@ ChatGPTren konfigurazioa + + Egin klik hemen OpenAi-ren API klabe bat sortzeko + \ No newline at end of file diff --git a/Properties/Resources.fr.resx b/Properties/Resources.fr.resx index d4649eb..c63a1cd 100644 --- a/Properties/Resources.fr.resx +++ b/Properties/Resources.fr.resx @@ -330,4 +330,7 @@ Paramètres pour ChatGPT + + Cliquez ici pour créer une clé API OpenAi + \ No newline at end of file diff --git a/Properties/Resources.it.resx b/Properties/Resources.it.resx index ea88e66..a7d70cd 100644 --- a/Properties/Resources.it.resx +++ b/Properties/Resources.it.resx @@ -330,4 +330,7 @@ Impostazioni per ChatGPT + + Clicca qui per creare una chiave API OpenAi + \ No newline at end of file diff --git a/Properties/Resources.pt-BR.resx b/Properties/Resources.pt-BR.resx index e5ef34f..ade4822 100644 --- a/Properties/Resources.pt-BR.resx +++ b/Properties/Resources.pt-BR.resx @@ -303,4 +303,7 @@ Configurações para ChatGPT + + Clique aqui para criar uma chave de API OpenAi + \ No newline at end of file diff --git a/Properties/Resources.pt.resx b/Properties/Resources.pt.resx index 6a163d5..3db7de9 100644 --- a/Properties/Resources.pt.resx +++ b/Properties/Resources.pt.resx @@ -330,4 +330,7 @@ Configurações para ChatGPT + + Clique aqui para criar uma chave de API OpenAi + \ No newline at end of file diff --git a/Properties/Resources.resx b/Properties/Resources.resx index 9f41e50..3e8883d 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -436,4 +436,7 @@ Settings for ChatGPT + + Click here to create a OpenAi API Key + \ No newline at end of file diff --git a/Properties/Resources.ru.resx b/Properties/Resources.ru.resx index c965577..0c3c893 100644 --- a/Properties/Resources.ru.resx +++ b/Properties/Resources.ru.resx @@ -330,4 +330,7 @@ Настройки для ChatGPT + + Нажмите здесь, чтобы создать ключ API OpenAi + \ No newline at end of file