From 5fe77a06a61ad5dce9c0154b8cdb0836bb9e8700 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 23 Apr 2025 15:45:53 +0600 Subject: [PATCH] Design fixes; Localisation fixes --- source/ubl-settings-services.c | 2 +- source/ubl-strings.h | 8 +++++--- ubl-settings-services.glade | 28 ++++++++++++++------------- ubl-settings-services.pot | 11 +++++++++-- ubl-settings-services_ru.po | 35 ++++++++++++++++++---------------- 5 files changed, 49 insertions(+), 35 deletions(-) diff --git a/source/ubl-settings-services.c b/source/ubl-settings-services.c index 2a9c4f1..f8ca6c9 100644 --- a/source/ubl-settings-services.c +++ b/source/ubl-settings-services.c @@ -630,7 +630,7 @@ void on_session_unlock(GtkWidget *self, main_window *widgets){ gtk_tree_model_get(model,&iter,0,&id,-1); dialog_confirmation_data *data = malloc(sizeof(dialog_confirmation_data)); char *convert = yon_char_from_int(id); - data->action_text = SESSION_ACTIVATE_TOOLTIP_LABEL(convert); + data->action_text = SESSION_UNLOCK_TOOLTIP_LABEL(convert); data->data = NULL; data->function = NULL; if (yon_confirmation_dialog_call(self,data) == GTK_RESPONSE_ACCEPT){ diff --git a/source/ubl-strings.h b/source/ubl-strings.h index 2951166..ce2b8d3 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -50,9 +50,10 @@ #define SHOW_LOG_LABEL _("Show log") #define SHOW_SOURCE_LABEL _("Show source") #define PROPERTIES_LABEL _("Properties") -#define ACTIVATE_SESSION_LABEL _("Activate session") +#define ACTIVATE_SESSION_LABEL _("Switch to session") #define END_SESSION_LABEL _("Terminate session") -#define BLOCK_SESSION_LABEL _("Block session") +#define BLOCK_SESSION_LABEL _("Lock session") +#define UNLOCK_SESSION_LABEL _("Unlock session") #define SOURCE_UNFOUND_LABEL _("Service source were not loaded") #define SERVICE_START_FAILED_LABEL _("Failed to launch service") @@ -72,8 +73,9 @@ #define RELOAD_SYSTEM_SETTINGS_WARNING_LABEL yon_char_unite(_("Are you sure want to reload system units settings?"),"\n",_("The system may become unstable."),NULL) #define RELOAD_USER_SETTINGS_WARNING_LABEL yon_char_unite(_("Are you sure want to reload user units settings?"),"\n",_("The system may become unstable."),NULL) #define SESSION_ACTIVATE_TOOLTIP_LABEL(target) yon_char_unite(_("Are you sure you want to switch on session")," ID-",target,"?",NULL) -#define SESSION_END_TOOLTIP_LABEL(target) yon_char_unite("",_("Attention!")," ",_("You are about to end your session")," ID-",target,"? ",_("If this is your active session, you will be taken to the login screen. Make sure to save all files before performing this operation."),NULL) +#define SESSION_END_TOOLTIP_LABEL(target) yon_char_unite("",_("Attention!")," ",_("You are about to end your session")," ID-",target,". ",_("If this is your active session, you will be taken to the login screen. Make sure to save all files before performing this operation."),NULL) #define SESSION_BLOCK_TOOLTIP_LABEL(target) yon_char_unite(_("Are you sure you want to block session")," ID-",target,"?",NULL) +#define SESSION_UNLOCK_TOOLTIP_LABEL(target) yon_char_unite(_("Are you sure you want to unlock session")," ID-",target,"?",NULL) #define DAYS_LABEL _("Days") #define HOURS_LABEL _("Hours") #define MINUTES_LABEL _("Minutes") diff --git a/ubl-settings-services.glade b/ubl-settings-services.glade index 7f8ffeb..9ff5ef2 100644 --- a/ubl-settings-services.glade +++ b/ubl-settings-services.glade @@ -1,5 +1,5 @@ - + @@ -434,7 +434,7 @@ True False - com.ublinux.ubl-settings-services.sync-symbolic + com.ublinux.libublsettingsui-gtk3.sync-symbolic True @@ -775,7 +775,7 @@ False True True - Service information + Unit information image3