From 455250019dc248588fd72e051a1aa0fc4a134a5e Mon Sep 17 00:00:00 2001 From: A_D Date: Mon, 28 Jun 2021 10:36:31 +0200 Subject: [PATCH] added lang entries --- L10n/en.template | 12 ++++++++++++ prefs.py | 9 ++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/L10n/en.template b/L10n/en.template index 39e1346c..5ed9f4cb 100644 --- a/L10n/en.template +++ b/L10n/en.template @@ -630,3 +630,15 @@ /* stats.py: Status dialog title; In files: stats.py:376; */ "Ships" = "Ships"; + +/* prefs.py: UI elements privacy section header in privacy tab of preferences; In files: prefs.py:682; */ +"Main UI privacy options" = "Main UI privacy options"; + +/* prefs.py: Hide private group owner name from UI checkbox; In files: prefs.py:687; */ +"Hide private group name in UI" = "Hide private group name in UI"; + +/* prefs.py: Hide multicrew captian name from main UI checkbox; In files: prefs.py:691; */ +"Hide multi-crew captian name" = "Hide multi-crew captian name"; + +/* prefs.py: Preferences privacy tab title; In files: prefs.py:695; */ +"Privacy" = "Privacy"; diff --git a/prefs.py b/prefs.py index 57c83f50..e110800d 100644 --- a/prefs.py +++ b/prefs.py @@ -678,18 +678,21 @@ class PreferencesDialog(tk.Toplevel): self.hide_private_group = tk.BooleanVar(value=config.get_bool('hide_private_group', default=False)) row = AutoInc() + # LANG: UI elements privacy section header in privacy tab of preferences nb.Label(frame, text=_('Main UI privacy options')).grid( row=row.get(), column=0, sticky=tk.W, padx=self.PADX, pady=self.PADY ) nb.Checkbutton( - frame, text=_('Hide private group name in UI'), variable=self.hide_private_group + frame, text=_('Hide private group name in UI'), # LANG: Hide private group owner name from UI checkbox + variable=self.hide_private_group ).grid(row=row.get(), column=0, padx=self.PADX, pady=self.PADY) nb.Checkbutton( - frame, text=_('Hide multi-crew captian name'), variable=self.hide_multicrew_captian + frame, text=_('Hide multi-crew captian name'), # LANG: Hide multicrew captian name from main UI checkbox + variable=self.hide_multicrew_captian ).grid(row=row.get(), column=0, padx=self.PADX, pady=self.PADY) - notebook.add(frame, text=_('Privacy')) + notebook.add(frame, text=_('Privacy')) # LANG: Preferences privacy tab title def __setup_appearance_tab(self, notebook: Notebook) -> None: self.languages = Translations.available_names()