diff --git a/source/ubl-settings-services.c b/source/ubl-settings-services.c index ada4c72..03e2eb0 100644 --- a/source/ubl-settings-services.c +++ b/source/ubl-settings-services.c @@ -666,7 +666,7 @@ void on_session_end(GtkWidget *self, main_window *widgets){ dialog_confirmation_data *data = yon_confirmation_dialog_data_new(); char *convert = yon_char_from_int(id); data->action_text = SESSION_END_TOOLTIP_LABEL(convert); - data->title = SESSION_TERMINATE_TITLE_LABEL; + data->title = SESSION_TERMINATE_TITLE_LABEL(convert); if (yon_confirmation_dialog_call(self,data) == GTK_RESPONSE_ACCEPT){ if (!system(session_terminate_session(convert))){ GtkTreeModel *model; @@ -692,7 +692,7 @@ void on_session_unlock(GtkWidget *self, main_window *widgets){ data->action_text = SESSION_UNLOCK_TOOLTIP_LABEL(convert); data->data = NULL; data->function = NULL; - data->title = SESSION_UNLOCK_TITLE_LABEL; + data->title = SESSION_UNLOCK_TITLE_LABEL(convert); if (yon_confirmation_dialog_call(self,data) == GTK_RESPONSE_ACCEPT){ yon_launch(session_unlock_session(convert)); free(convert); @@ -712,7 +712,7 @@ void on_session_block(GtkWidget *self, main_window *widgets){ data->action_text = SESSION_BLOCK_TOOLTIP_LABEL(convert); data->data = NULL; data->function = NULL; - data->title = SESSION_LOCK_TITLE_LABEL; + data->title = SESSION_LOCK_TITLE_LABEL(convert); if (yon_confirmation_dialog_call(self,data) == GTK_RESPONSE_ACCEPT){ yon_launch(session_lock_session(convert)); free(convert); diff --git a/source/ubl-strings.h b/source/ubl-strings.h index 28f1863..ad2058b 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -73,7 +73,7 @@ #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) @@ -83,9 +83,9 @@ #define SERVICE_AUTOSTOP_TITLE_LABEL _("Service disabling") #define SESSION_SWITCH_TITLE_LABEL(target) yon_char_unite(_("Switching to session")," ID-",target,NULL) -#define SESSION_LOCK_TITLE_LABEL _("Session locking") -#define SESSION_UNLOCK_TITLE_LABEL _("Session unlocking") -#define SESSION_TERMINATE_TITLE_LABEL _("Session termination") +#define SESSION_LOCK_TITLE_LABEL(target) yon_char_unite(_("Lock session")," ID-",target,NULL) +#define SESSION_UNLOCK_TITLE_LABEL(target) yon_char_unite(_("Unlock session")," ID-",target,NULL) +#define SESSION_TERMINATE_TITLE_LABEL(target) yon_char_unite(_("Terminate session")," ID-",target,NULL) #define DAYS_LABEL _("Days") #define HOURS_LABEL _("Hours") diff --git a/ubl-settings-services.pot b/ubl-settings-services.pot index e39f971..9e49756 100644 --- a/ubl-settings-services.pot +++ b/ubl-settings-services.pot @@ -256,7 +256,12 @@ msgid "Attention!" msgstr "" #: source/ubl-strings.h:76 -msgid "You are about to end your session" +msgid "You are about to" +msgstr "" +msgstr "" + +#: source/ubl-strings.h:76 +msgid "end your session" msgstr "" #: source/ubl-strings.h:76 diff --git a/ubl-settings-services_ru.po b/ubl-settings-services_ru.po index 47e8262..348428b 100644 --- a/ubl-settings-services_ru.po +++ b/ubl-settings-services_ru.po @@ -257,8 +257,12 @@ msgid "Attention!" msgstr "Внимание!" #: source/ubl-strings.h:76 -msgid "You are about to end your session" -msgstr "Вы собираетесь завершить сессию" +msgid "You are about to" +msgstr "Вы собираетесь" + +#: source/ubl-strings.h:76 +msgid "end your session" +msgstr "завершить сессию" #: source/ubl-strings.h:76 msgid ""