@@ -45,15 +45,17 @@ def __init__(self, folder_name):
4545 # switch for all items
4646 self .switch = Gtk .Switch ()
4747 self .switch .set_halign (Gtk .Align .END )
48- self .switch .set_valign (Gtk .Align .END )
48+ self .switch .set_valign (Gtk .Align .CENTER )
4949 self .switch .connect ("state-set" , self .on_switch_activated )
5050 if settings ["disabled-flatpak-apps-data" ] == []:
5151 self .switch .set_active (True )
5252
5353 # row for all items
5454 self .approw = Adw .ActionRow .new ()
5555 self .approw .set_title (folder_name )
56- self .approw .add_prefix (self .switch )
56+ self .approw .add_suffix (self .switch )
57+ self .approw .set_title_lines (4 )
58+ self .approw .set_activatable_widget (self .switch )
5759 self .approw .set_hexpand (True )
5860
5961 # box for self.approw
@@ -80,7 +82,7 @@ def on_switch_activated(self, switch, state):
8082class FlatpakAppsDialog (Adw .MessageDialog ):
8183 def __init__ (self ):
8284 super ().__init__ (transient_for = app .get_active_window ())
83- self .set_heading ("Flatpak apps data selection" )
85+ self .set_heading (_ [ "flatpaks_data_tittle" ] )
8486 self .set_default_size (300 , 400 )
8587
8688 # primary Gtk.Box for this dialog
@@ -1223,7 +1225,7 @@ def cancel_save(w):
12231225 self .savewaitBox .append (self .sdoneImage )
12241226
12251227 # create label about selected directory for saving the configuration
1226- self .savewaitLabel = Gtk .Label .new (str = "<big><b>Saving configuration ...</b></big> \n The configuration of your desktop environment will be saved in: \n <i>{}/{}.sd.tar.gz</i> \n " .format (self .folder , self .filename_text ))
1228+ self .savewaitLabel = Gtk .Label .new (str = _ [ "saving_config_status" ] .format (self .folder , self .filename_text ))
12271229 self .savewaitLabel .set_use_markup (True )
12281230 self .savewaitLabel .set_justify (Gtk .Justification .CENTER )
12291231 self .savewaitLabel .set_wrap (True )
@@ -1270,7 +1272,7 @@ def back_to_main(w):
12701272 self .sdoneImage .set_pixel_size (128 )
12711273
12721274 # edit label for the purposes of this page
1273- self .savewaitLabel .set_label (f"<big><b> { _ ['config_saved' ]} </b></big> \n You can now view the archive with the configuration of your desktop environment, or return to the previous page. \n " )
1275+ self .savewaitLabel .set_label (_ [ "config_saved_desc" ]. format ( _ ['config_saved' ]) )
12741276 self .opensaveButton = Gtk .Button .new_with_label (_ ["open_folder" ])
12751277 self .opensaveButton .add_css_class ('pill' )
12761278 self .opensaveButton .add_css_class ('suggested-action' )
@@ -1280,7 +1282,7 @@ def back_to_main(w):
12801282 self .savewaitBox .append (self .opensaveButton )
12811283
12821284 # create button for backing to the previous page
1283- self .backtomButton = Gtk .Button .new_with_label ("Back to previous page" )
1285+ self .backtomButton = Gtk .Button .new_with_label (_ [ "back_to_page" ] )
12841286 self .backtomButton .connect ("clicked" , back_to_main )
12851287 self .backtomButton .add_css_class ("pill" )
12861288 self .backtomButton .set_margin_start (170 )
@@ -1330,7 +1332,7 @@ def cancel_import(w):
13301332 self .importwaitBox .append (self .idoneImage )
13311333
13321334 # create label about configuration archive name
1333- self .importwaitLabel = Gtk .Label .new (str = "<big><b>Importing configuration ...</b></big> \n Importing configuration from: {} \n " .format (config_name ))
1335+ self .importwaitLabel = Gtk .Label .new (str = _ [ "importing_config_status" ] .format (config_name ))
13341336 self .importwaitLabel .set_use_markup (True )
13351337 self .importwaitLabel .set_justify (Gtk .Justification .CENTER )
13361338 self .importwaitLabel .set_wrap (True )
@@ -1378,7 +1380,7 @@ def back_to_main(w):
13781380 self .idoneImage .set_pixel_size (128 )
13791381
13801382 # edit label for the purposes of this page
1381- self .importwaitLabel .set_label (f"<big><b> { _ ['config_imported' ]} </b></big> \n You can log out of the system for the changes to take effect, or go back to the previous page and log out later. \n " )
1383+ self .importwaitLabel .set_label (_ [ "config_imported_desc" ]. format ( _ ['config_imported' ]) )
13821384
13831385 # create button for loging out of the system
13841386 self .logoutButton = Gtk .Button .new_with_label (_ ["logout" ])
0 commit comments