From 631446f619642be76510068f69beec2e6f8af371 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 7 Jun 2021 16:02:39 +0100 Subject: [PATCH] Translations: Final LANG comments The script now outputs nothing about Unknown comments --- EDMarketConnector.py | 2 +- theme.py | 1 + ttkHyperlinkLabel.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index b3e48b00..cd75a2bf 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -702,7 +702,7 @@ class AppWindow(object): def set_labels(self): """Set main window labels, e.g. after language change.""" - self.cmdr_label['text'] = _('Cmdr') + ':' # LANG: Main window + self.cmdr_label['text'] = _('Cmdr') + ':' # LANG: Label for commander name in main window # LANG: 'Ship' or multi-crew role label in main window, as applicable self.ship_label['text'] = (monitor.state['Captain'] and _('Role') or _('Ship')) + ':' # Main window self.suit_label['text'] = _('Suit') + ':' # LANG: Main window diff --git a/theme.py b/theme.py index 702edf3c..cac65ba7 100644 --- a/theme.py +++ b/theme.py @@ -223,6 +223,7 @@ class _Theme(object): 'disabledforeground' : '#%02x%02x%02x' % (int(r/384), int(g/384), int(b/384)), 'highlight' : config.get_str('dark_highlight'), # Font only supports Latin 1 / Supplement / Extended, and a few General Punctuation and Mathematical Operators + # LANG: Label for commander name in main window 'font' : (theme > 1 and not 0x250 < ord(_('Cmdr')[0]) < 0x3000 and tkFont.Font(family='Euro Caps', size=10, weight=tkFont.NORMAL) or 'TkDefaultFont'), diff --git a/ttkHyperlinkLabel.py b/ttkHyperlinkLabel.py index c731ffac..2f64ab74 100644 --- a/ttkHyperlinkLabel.py +++ b/ttkHyperlinkLabel.py @@ -38,7 +38,8 @@ class HyperlinkLabel(platform == 'darwin' and tk.Label or ttk.Label, object): self.bind('', self._click) self.menu = tk.Menu(None, tearoff=tk.FALSE) - self.menu.add_command(label=_('Copy'), command = self.copy) # As in Copy and Paste + # LANG: Label for 'Copy' as in 'Copy and Paste' + self.menu.add_command(label=_('Copy'), command = self.copy) # As in Copy and Paste self.bind(platform == 'darwin' and '' or '', self._contextmenu) self.bind('', self._enter)