Skip to content

Commit fdf9673

Browse files
committed
Fix translations in window.py
1 parent 2656825 commit fdf9673

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/gui/window.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -542,18 +542,19 @@ def checkDialog_closed(w, response):
542542
def save_config(self):
543543
self.archive_mode = "--create"
544544
self.archive_name = f"{self.folder}/{self.filename_text}"
545-
self.status_title = _("<big><b>Saving configuration …</b></big>\nThe configuration of your desktop environment will be saved in:\n<i>{}/{}.sd.tar.gz</i>").split('</b>')[0].split('<b>')[-1]
545+
self.status_title = _("<big><b>Saving configuration …</b></big>\nThe configuration of your desktop environment will be saved in:\n <i>{}/{}.sd.tar.gz</i>\n").split('</b>')[0].split('<b>')[-1]
546546
self.status_desc = self._set_status_desc_save()
547+
print(self._set_status_desc_save())
547548
self.done_title = _("Configuration has been saved!")
548-
self.done_desc = _("<big><b>{}</b></big>\nYou can now view the archive with the configuration of your desktop environment, or return to the previous page.").format(_("Configuration has been saved!"))
549+
self.done_desc = _("<big><b>{}</b></big>\nYou can now view the archive with the configuration of your desktop environment, or return to the previous page.\n").format(_("Configuration has been saved!"))
549550

550551
self.please_wait()
551552
save_thread = Thread(target=self._call_archive_command)
552553
save_thread.start()
553554

554555
def _set_status_desc_save(self):
555556
# Use "sd.zip" if Archive Encryption is enabled
556-
status_old = _("<big><b>Saving configuration …</b></big>\nThe configuration of your desktop environment will be saved in:\n<i>{}/{}.sd.tar.gz</i>")
557+
status_old = _("<big><b>Saving configuration …</b></big>\nThe configuration of your desktop environment will be saved in:\n <i>{}/{}.sd.tar.gz</i>\n")
557558
status = status_old.replace("sd.tar.gz", "sd.zip") if not settings["save-without-archive"] else status_old.replace("sd.tar.gz", "")
558559
return status.format(self.folder, self.filename_text)
559560

@@ -562,10 +563,10 @@ def import_config(self):
562563
self._identify_file_type()
563564

564565
self.archive_mode = "--unpack"
565-
self.status_title = _("<big><b>Importing configuration …</b></big>\nImporting configuration from:\n<i>{}</i>").split('</b>')[0].split('<b>')[-1]
566-
self.status_desc = _("<big><b>Importing configuration …</b></big>\nImporting configuration from:\n<i>{}</i>").format(self.archive_name)
566+
self.status_title = _("<big><b>Importing configuration …</b></big>\nImporting configuration from:\n<i>{}</i>\n").split('</b>')[0].split('<b>')[-1]
567+
self.status_desc = _("<big><b>Importing configuration …</b></big>\nImporting configuration from:\n<i>{}</i>\n").format(self.archive_name)
567568
self.done_title = _("The configuration has been applied!")
568-
self.done_desc = _("<big><b>{}</b></big>\nYou can log out of the system for the changes to take effect, or go back to the previous page and log out later.").format(_("The configuration has been applied!"))
569+
self.done_desc = _("<big><b>{}</b></big>\nYou can log out of the system for the changes to take effect, or go back to the previous page and log out later.\n").format(_("The configuration has been applied!"))
569570

570571
self.please_wait()
571572
import_thread = Thread(target=self._call_archive_command)
@@ -655,7 +656,7 @@ def done(self):
655656
self.status_page.set_description(self.done_desc)
656657

657658
# Box layout for the buttons below
658-
self.buttons_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=5)
659+
self.buttons_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=10)
659660
self.status_page.set_child(self.buttons_box)
660661

661662
self._add_specific_button()

0 commit comments

Comments
 (0)