aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2009-09-17 16:52:38 -0400
committerKen VanDine <ken.vandine@canonical.com>2009-09-17 16:52:38 -0400
commitf4ff0a55916f405242eb04faf9ad591787049117 (patch)
tree22308fd03b7f6939fd7c17295473d3ff6f49c7ed /src/session-service.c
parent2673f30d0102f8e66809bc1fe20d9bea397236dc (diff)
parent382806bf28f847d73ce20e152f65f8e4a7c2bf0d (diff)
downloadayatana-indicator-session-f4ff0a55916f405242eb04faf9ad591787049117.tar.gz
ayatana-indicator-session-f4ff0a55916f405242eb04faf9ad591787049117.tar.bz2
ayatana-indicator-session-f4ff0a55916f405242eb04faf9ad591787049117.zip
* Upstream release (LP: #432120)
* Fixes to issues brought up by the design team.
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 59a3a97..9c3c4ef 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -21,6 +21,7 @@ You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
#include <glib/gi18n.h>
@@ -258,9 +259,9 @@ create_items (DbusmenuMenuitem * root) {
shutdown_mi = dbusmenu_menuitem_new();
if (supress_confirmations()) {
- dbusmenu_menuitem_property_set(shutdown_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Shutdown"));
+ dbusmenu_menuitem_property_set(shutdown_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Shut Down"));
} else {
- dbusmenu_menuitem_property_set(shutdown_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Shutdown..."));
+ dbusmenu_menuitem_property_set(shutdown_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Shut Down..."));
}
dbusmenu_menuitem_child_append(root, shutdown_mi);
g_signal_connect(G_OBJECT(shutdown_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(show_dialog), "shutdown");
@@ -282,6 +283,12 @@ main (int argc, char ** argv)
{
g_type_init();
+ /* Setting up i18n and gettext. Apparently, we need
+ all of these. */
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+
DBusGConnection * connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
DBusGProxy * bus_proxy = dbus_g_proxy_new_for_name(connection, DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
GError * error = NULL;