From 174e1694691e34b9910a65f6a1c4e596cb79acda Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Sep 2020 09:28:07 +0100 Subject: [PATCH] UI Scaling: Add text stating changes require a restart. Also updates the translation text. --- L10n/en.template | 4 ++-- prefs.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/L10n/en.template b/L10n/en.template index 80449841..dc286b4e 100644 --- a/L10n/en.template +++ b/L10n/en.template @@ -529,8 +529,8 @@ /* Label for 'UI Scaling' option [prefs.py] */ "UI Scaling" = "UI Scaling"; -/* Text describing that value '0.0' means 'default' [prefs.py] */ -"0.0 means Default" = "0.0 means Default"; +/* Text describing that value '0.0' means 'default', and changes require a restart [prefs.py] */ +"0.0 means Default{CR}Restart Required for{CR}changes to take effect!" = "0.0 means Default{CR}Restart Required for{CR}changes to take effect!"; /* Label for user configured level of logging [prefs.py] */ "Log Level" = "Log Level"; diff --git a/prefs.py b/prefs.py index 0e64f377..934ebcd2 100644 --- a/prefs.py +++ b/prefs.py @@ -354,7 +354,8 @@ class PreferencesDialog(tk.Toplevel): resolution=0.1, ) self.uiscale_bar.grid(row=23, column=1, sticky=tk.W) - self.ui_scaling_defaultis = nb.Label(themeframe, text=_('0.0 means Default')).grid(row=23, column=3, padx=PADX, pady=2*PADY, sticky=tk.E) + #self.ui_scaling_defaultis = nb.Label(themeframe, text=_('0.0 means Default') + '\n' + _('Restart Required for') + '\n' + _('changes to take effect!')).grid(row=23, column=3, padx=PADX, pady=2*PADY, sticky=tk.E) + self.ui_scaling_defaultis = nb.Label(themeframe, text=_('0.0 means Default{CR}Restart Required for{CR}changes to take effect!')).grid(row=23, column=3, padx=PADX, pady=2*PADY, sticky=tk.E) # Always on top ttk.Separator(themeframe, orient=tk.HORIZONTAL).grid(columnspan=3, padx=PADX, pady=PADY*4, sticky=tk.EW)