From b0ae7f140c0b99a2c6a4c926fd8766064e5a0776 Mon Sep 17 00:00:00 2001 From: Giampiero <54741923+GLWine@users.noreply.github.com> Date: Tue, 31 Oct 2023 01:23:59 +0100 Subject: [PATCH 1/3] Fixed translation hook line 295 Corrected the text of code line 295; The text text="Show API Key" cannot be translated as indicated, so I rewrote it as text=_('Show API Key'). --- plugins/inara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inara.py b/plugins/inara.py index efe010df..ec034840 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -292,7 +292,7 @@ def plugin_prefs(parent: ttk.Notebook, cmdr: str, is_beta: bool) -> tk.Frame: show_password_var.set(False) # Password is initially masked show_password_checkbox = nb.Checkbutton( frame, - text="Show API Key", + text=_('Show API Key'), # LANG: Text Inara Show API key variable=show_password_var, command=toggle_password_visibility, ) From 98e9765391d444e46b33c4b0554b260cf984f742 Mon Sep 17 00:00:00 2001 From: Giampiero <54741923+GLWine@users.noreply.github.com> Date: Tue, 31 Oct 2023 01:31:29 +0100 Subject: [PATCH 2/3] Fixed translation hook line 355 Corrected the text of code line 355; The text text="Show API Key" cannot be translated as indicated, so I rewrote it as text=_('Show API Key'). --- plugins/edsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/edsm.py b/plugins/edsm.py index 2f644dcb..82324ced 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -352,7 +352,7 @@ def plugin_prefs(parent: ttk.Notebook, cmdr: Optional[str], is_beta: bool) -> tk show_password_checkbox = nb.Checkbutton( frame, - text="Show API Key", + text=_('Show API Key'), # LANG: Text EDSM Show API Key variable=show_password_var, command=toggle_password_visibility ) From 173c32f31407bdebb5bfd3ce90b83cb8abfe8de9 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Wed, 6 Dec 2023 17:15:46 -0500 Subject: [PATCH 3/3] [Minor] Update Code Checks --- plugins/edsm.py | 2 +- plugins/inara.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/edsm.py b/plugins/edsm.py index 82324ced..4218db00 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -352,7 +352,7 @@ def plugin_prefs(parent: ttk.Notebook, cmdr: Optional[str], is_beta: bool) -> tk show_password_checkbox = nb.Checkbutton( frame, - text=_('Show API Key'), # LANG: Text EDSM Show API Key + text=_('Show API Key'), # LANG: Text EDSM Show API Key variable=show_password_var, command=toggle_password_visibility ) diff --git a/plugins/inara.py b/plugins/inara.py index ec034840..54f0f090 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -292,7 +292,7 @@ def plugin_prefs(parent: ttk.Notebook, cmdr: str, is_beta: bool) -> tk.Frame: show_password_var.set(False) # Password is initially masked show_password_checkbox = nb.Checkbutton( frame, - text=_('Show API Key'), # LANG: Text Inara Show API key + text=_('Show API Key'), # LANG: Text Inara Show API key variable=show_password_var, command=toggle_password_visibility, )