aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-03 13:39:51 -0600
committerTed Gould <ted@gould.cx>2010-03-03 13:39:51 -0600
commitbdd9261ccfbd3bf0e59a6cb495663c425a0dcbe3 (patch)
tree5e2d4b9e2ddb7e5ebaca9e3893175c4410ce4244
parent64602f8dd39b0fd35b0bfc6697fe62bd7a2de0ad (diff)
downloadayatana-indicator-session-bdd9261ccfbd3bf0e59a6cb495663c425a0dcbe3.tar.gz
ayatana-indicator-session-bdd9261ccfbd3bf0e59a6cb495663c425a0dcbe3.tar.bz2
ayatana-indicator-session-bdd9261ccfbd3bf0e59a6cb495663c425a0dcbe3.zip
Adding in all the strings.
-rw-r--r--src/gtk-dialog/dialog.c34
-rw-r--r--src/gtk-dialog/dialog.h3
2 files changed, 36 insertions, 1 deletions
diff --git a/src/gtk-dialog/dialog.c b/src/gtk-dialog/dialog.c
index 06b146c..186a506 100644
--- a/src/gtk-dialog/dialog.c
+++ b/src/gtk-dialog/dialog.c
@@ -2,8 +2,42 @@
#include "config.h"
#endif
+#include <glib/gi18n.h>
+
#include "dialog.h"
+/* Strings */
+
+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")
+};
+
+static const gchar * body_strings[LOGOUT_DIALOG_TYPE_CNT] = {
+ /* LOGOUT_DIALOG_LOGOUT, */ N_("Are you sure you want to close all programs and log out?"),
+ /* LOGOUT_DIALOG_RESTART, */ N_("Are you sure you want to close all programs and restart the computer?"),
+ /* LOGOUT_DIALOG_SHUTDOWN, */ N_("Are you sure you want to close all programs and shut down the computer?")
+};
+
+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")
+};
+
+static const gchar * restart_updates = N_("Restart Instead");
+static const gchar * restart_auth = N_("Restart...");
+static const gchar * body_logout_update = N_("Some software updates won't apply until the computer next restarts.");
+
+static const gchar * icon_strings[LOGOUT_DIALOG_TYPE_CNT] = {
+ /* LOGOUT_DIALOG_LOGOUT, */ "system-log-out",
+ /* LOGOUT_DIALOG_RESTART, */ "system-restart",
+ /* LOGOUT_DIALOG_SHUTDOWN, */ "system-shutdown"
+};
+
+
+
typedef struct _LogoutDialogPrivate LogoutDialogPrivate;
struct _LogoutDialogPrivate {
guint type;
diff --git a/src/gtk-dialog/dialog.h b/src/gtk-dialog/dialog.h
index bd6abd2..1e6f575 100644
--- a/src/gtk-dialog/dialog.h
+++ b/src/gtk-dialog/dialog.h
@@ -19,7 +19,8 @@ typedef enum _LogoutDialogType LogoutDialogType;
enum _LogoutDialogType {
LOGOUT_DIALOG_TYPE_LOG_OUT,
LOGOUT_DIALOG_TYPE_RESTART,
- LOGOUT_DIALOG_TYPE_SHUTDOWN
+ LOGOUT_DIALOG_TYPE_SHUTDOWN,
+ LOGOUT_DIALOG_TYPE_CNT
};
typedef struct _LogoutDialog LogoutDialog;