add strings User Restore, User Backup and System Restore
This commit is contained in:
Binary file not shown.
@@ -207,6 +207,9 @@ class Msg:
|
||||
"sources": _("Sources"),
|
||||
"destination": _("Destination"),
|
||||
"system_backup_info": _("System Backup"),
|
||||
"system_restore_info": _("System Restore"),
|
||||
"user_backup_info": _("User Backup"),
|
||||
"user_restore_info": _("User Restore"),
|
||||
"select_destination_first": _("Please select a destination first"),
|
||||
"calculating_size": _("Calculating size..."),
|
||||
"select_destination": _("Select Destination"),
|
||||
|
||||
Binary file not shown.
@@ -37,9 +37,19 @@ class Actions:
|
||||
return
|
||||
|
||||
icon_name = self.app.buttons_map[button_text]['icon']
|
||||
|
||||
# Determine the correct description based on mode and selection
|
||||
extra_info = ""
|
||||
if button_text == "Computer":
|
||||
extra_info = Msg.STR["system_backup_info"]
|
||||
if self.app.mode == 'backup':
|
||||
extra_info = Msg.STR["system_backup_info"]
|
||||
else: # restore
|
||||
extra_info = Msg.STR["system_restore_info"]
|
||||
else: # User folder
|
||||
if self.app.mode == 'backup':
|
||||
extra_info = Msg.STR["user_backup_info"]
|
||||
else: # restore
|
||||
extra_info = Msg.STR["user_restore_info"]
|
||||
|
||||
# Unified logic for starting a calculation on the left canvas
|
||||
self._start_left_canvas_calculation(button_text, str(folder_path), icon_name, extra_info)
|
||||
|
||||
Reference in New Issue
Block a user