[Pkg-privacy-commits] [tails-installer] 06/17: Compare radio button labels against translated strings.

Ulrike Uhlig ulrike at moszumanska.debian.org
Mon Mar 12 14:21:14 UTC 2018


This is an automated email from the git hooks/post-receive script.

ulrike pushed a commit to branch tails/master
in repository tails-installer.

commit 89aee8049e14fc8cf5cb74f155e61d9f47ceb4e7
Author: anonym <anonym at riseup.net>
Date:   Sat Jan 27 10:19:40 2018 +0100

    Compare radio button labels against translated strings.
    
    If we run in a locale with non-English translations of these strings,
    then .get_label will return the *translated* string, so comparing to
    the untranslated string is wrong.
---
 tails_installer/gui.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tails_installer/gui.py b/tails_installer/gui.py
index b2e18cc..7216b96 100755
--- a/tails_installer/gui.py
+++ b/tails_installer/gui.py
@@ -417,14 +417,14 @@ class TailsInstallerWindow(Gtk.ApplicationWindow):
     def on_radio_button_source_iso_toggled(self, radio_button):
         self.live.log.debug("Entering on_radio_button_source_iso_toggled")
         active_radio = [r for r in radio_button.get_group() if r.get_active()][0]
-        if active_radio.get_label() == "Clone the current Tails":
+        if active_radio.get_label() == _("Clone the current Tails"):
             self.live.log.debug("Mode: clone")
             self.opts.clone = True
             self.live.source = RunningLiveSystemSource(
                 path=config['running_liveos_mountpoint'])
             self.source_available = True
             self.__filechooserbutton_source_file.set_sensitive(False)
-        elif active_radio.get_label() == "Use a downloaded Tails ISO image":
+        elif active_radio.get_label() == _("Use a downloaded Tails ISO image"):
             self.live.log.debug("Mode: from ISO")
             self.opts.clone = False
             self.live.source = None

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git



More information about the Pkg-privacy-commits mailing list