From 4fa0521438e16f09749087aad379048ca5f6c30c Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 7 Jun 2021 15:43:32 +0100 Subject: [PATCH] other core plugins: LANG comment pass --- plugins/eddn.py | 2 +- plugins/edsm.py | 6 +++++- plugins/inara.py | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index feeb0e5c..693f01fc 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -590,7 +590,7 @@ Msg:\n{msg}''' else: # Can't access replay file! Send immediately. - self.parent.children['status']['text'] = _('Sending data to EDDN...') + self.parent.children['status']['text'] = _('Sending data to EDDN...') # LANG: Data is being sent to EDDN self.parent.update_idletasks() self.send(cmdr, msg) self.parent.children['status']['text'] = '' diff --git a/plugins/edsm.py b/plugins/edsm.py index 9519d83f..458b1740 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -213,6 +213,7 @@ def plugin_prefs(parent: tk.Tk, cmdr: str, is_beta: bool) -> tk.Frame: this.label.grid(columnspan=2, padx=PADX, sticky=tk.W) + # LANG: Game Commander name label in EDSM settings this.cmdr_label = nb.Label(frame, text=_('Cmdr')) # Main window this.cmdr_label.grid(row=cur_row, padx=PADX, sticky=tk.W) this.cmdr_text = nb.Label(frame) @@ -220,6 +221,7 @@ def plugin_prefs(parent: tk.Tk, cmdr: str, is_beta: bool) -> tk.Frame: cur_row += 1 + # LANG: EDSM Commander name label in EDSM settings this.user_label = nb.Label(frame, text=_('Commander Name')) # EDSM setting this.user_label.grid(row=cur_row, padx=PADX, sticky=tk.W) this.user = nb.Entry(frame) @@ -227,6 +229,7 @@ def plugin_prefs(parent: tk.Tk, cmdr: str, is_beta: bool) -> tk.Frame: cur_row += 1 + # LANG: EDSM API key label this.apikey_label = nb.Label(frame, text=_('API Key')) # EDSM setting this.apikey_label.grid(row=cur_row, padx=PADX, sticky=tk.W) this.apikey = nb.Entry(frame) @@ -253,7 +256,8 @@ def prefs_cmdr_changed(cmdr: str, is_beta: bool) -> None: this.apikey.insert(0, cred[1]) else: - this.cmdr_text['text'] = _('None') # No hotkey/shortcut currently defined + # LANG: We have no data on the current commander + this.cmdr_text['text'] = _('None') to_set = tk.DISABLED if cmdr and not is_beta and this.log.get(): diff --git a/plugins/inara.py b/plugins/inara.py index 5e216007..f4db0098 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -230,6 +230,7 @@ def plugin_prefs(parent: tk.Tk, cmdr: str, is_beta: bool) -> tk.Frame: this.label.grid(columnspan=2, padx=x_padding, sticky=tk.W) + # LANG: Inara API key label this.apikey_label = nb.Label(frame, text=_('API Key')) # Inara setting this.apikey_label.grid(row=12, padx=x_padding, sticky=tk.W) this.apikey = nb.Entry(frame)