aboutsummaryrefslogtreecommitdiff
path: root/src/dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialog.c')
-rw-r--r--src/dialog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dialog.c b/src/dialog.c
index deefe0b..51b1682 100644
--- a/src/dialog.c
+++ b/src/dialog.c
@@ -34,7 +34,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
static const gchar * title_strings[LOGOUT_DIALOG_TYPE_CNT] = {
/* LOGOUT_DIALOG_LOGOUT, */ NC_("title", "Log Out"),
/* LOGOUT_DIALOG_RESTART, */ NC_("title", "Restart"),
- /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("title", "Switch Off")
+ /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("title", "Shut Down")
};
static const gchar * body_strings[LOGOUT_DIALOG_TYPE_CNT] = {
@@ -46,7 +46,7 @@ static const gchar * body_strings[LOGOUT_DIALOG_TYPE_CNT] = {
static const gchar * button_strings[LOGOUT_DIALOG_TYPE_CNT] = {
/* LOGOUT_DIALOG_LOGOUT, */ NC_("button", "Log Out"),
/* LOGOUT_DIALOG_RESTART, */ NC_("button", "Restart"),
- /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button", "Switch Off")
+ /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button", "Shut Down")
};
/* TRANSLATORS: These strings have an ellipsis so that the user knows
@@ -54,7 +54,7 @@ static const gchar * button_strings[LOGOUT_DIALOG_TYPE_CNT] = {
static const gchar * button_auth_strings[LOGOUT_DIALOG_TYPE_CNT] = {
/* LOGOUT_DIALOG_LOGOUT, */ NC_("button auth", "Log Out"),
/* LOGOUT_DIALOG_RESTART, */ NC_("button auth", "Restart..."),
- /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button auth", "Switch Off...")
+ /* LOGOUT_DIALOG_SHUTDOWN, */ NC_("button auth", "Shut Down...")
};
/* TRANSLATORS: This button appears on the logout dialog when
@@ -174,7 +174,7 @@ logout_dialog_new (LogoutDialogType type)
"icon-name", icon_strings[type],
"modal", TRUE,
"resizable", FALSE,
- "title", _(title_strings[type]),
+ "title", g_dpgettext2 (NULL, "title", title_strings[type]),
"window-position", GTK_WIN_POS_CENTER_ALWAYS,
/* Message Dialog */
"buttons", GTK_BUTTONS_NONE,
@@ -197,9 +197,9 @@ logout_dialog_new (LogoutDialogType type)
const gchar * button_text;
if (allowed) {
- button_text = _(button_strings[type]);
+ button_text = g_dpgettext2 (NULL, "button", button_strings[type]);
} else {
- button_text = _(button_auth_strings[type]);
+ button_text = g_dpgettext2 (NULL, "button auth", button_auth_strings[type]);
}
if (restart_required) {