Commit c43ed8fd authored by Alan's avatar Alan
Browse files

ASP: make missing strings translatable in configuration window

Will-fix: #14598
parent f8e2f9f8
......@@ -165,41 +165,43 @@ class ASPConfigApplicationWindow(Gtk.ApplicationWindow):
self.listbox.show_all()
self.stack.set_visible_child(self.package_list_page)
self.install_label.set_markup(
'To add more, install some software using '
'<a href="synaptic.desktop">Synaptic Package Manager</a> '
'or <a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.')
_('To add more, install some software using '
'<a href="synaptic.desktop">Synaptic Package Manager</a> '
'or <a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.'))
else:
self.stack.set_visible_child(self.no_package_page)
self.install_label.set_markup(
'To do so, install some software using '
'<a href="synaptic.desktop">Synaptic Package Manager</a> '
'or <a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.')
_('To do so, install some software using '
'<a href="synaptic.desktop">Synaptic Package Manager</a> '
'or <a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.'))
if has_unlocked_persistence(search_new_persistence=True):
# The label from the UI file is good unmodified
pass
elif has_persistence():
self.install_label.set_markup(
'To do so, unlock your persistent storage '
'when starting Tails and '
'install some software using '
'<a href="synaptic.desktop">Synaptic Package Manager</a> '
'or <a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.')
_('To do so, unlock your persistent storage '
'when starting Tails and '
'install some software using '
'<a href="synaptic.desktop">Synaptic Package '
'Manager</a> or '
'<a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.'))
elif is_tails_media_writable():
self.persistence_button.set_visible(True)
self.install_label.set_markup(
'To do so, create a persistent storage and install some '
'software using '
'<a href="synaptic.desktop">Synaptic Package Manager</a> '
'or <a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.')
_('To do so, create a persistent storage and install some '
'software using '
'<a href="synaptic.desktop">Synaptic Package '
'Manager</a> or '
'<a href="org.gnome.Terminal.desktop">APT on the '
'command line</a>.'))
else: # It's impossible to have a persistent storage
self.install_label.set_markup(
'To do so, install Tails on a USB stick using '
'<a href="tails-installer.desktop">Tails Installer</a> '
'and create a persistent storage.')
_('To do so, install Tails on a USB stick using '
'<a href="tails-installer.desktop">Tails Installer</a> '
'and create a persistent storage.'))
class ASPConfigApplication(Gtk.Application):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment