aboutsummaryrefslogtreecommitdiff
path: root/src/dialog.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2010-04-09 20:59:20 +0200
committerSebastien Bacher <seb128@ubuntu.com>2010-04-09 20:59:20 +0200
commitef92fb6b07220aea130c9a32890c56623e393a45 (patch)
tree75c5ec3c6753057bcfa68703e206d2a6c2c3ee26 /src/dialog.c
parent81db14844ae153486cd472e1186d98b33865a23a (diff)
parentdda06df8cd9fd0186d81701c72ff2e6fa36f5658 (diff)
downloadayatana-indicator-session-ef92fb6b07220aea130c9a32890c56623e393a45.tar.gz
ayatana-indicator-session-ef92fb6b07220aea130c9a32890c56623e393a45.tar.bz2
ayatana-indicator-session-ef92fb6b07220aea130c9a32890c56623e393a45.zip
releasing version 0.2.8-0ubuntu1~ppa1
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) {