gnome-main-menu r452 - trunk/libslab
- From: sreeves svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-main-menu r452 - trunk/libslab
- Date: Tue, 29 Apr 2008 00:43:15 +0100 (BST)
Author: sreeves
Date: Mon Apr 28 23:43:15 2008
New Revision: 452
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=452&view=rev
Log:
Fix for BNC#308998 -missing translations
Modified:
trunk/libslab/ChangeLog
trunk/libslab/bookmark-agent.c
Modified: trunk/libslab/bookmark-agent.c
==============================================================================
--- trunk/libslab/bookmark-agent.c (original)
+++ trunk/libslab/bookmark-agent.c Mon Apr 28 23:43:15 2008
@@ -1041,6 +1041,7 @@
GnomeDesktopItem *ditem;
gchar *uri_new = NULL;
+ gchar *name;
ditem = libslab_gnome_desktop_item_new_from_unknown_id (uri);
@@ -1053,9 +1054,18 @@
if (! uri_new)
return;
- if (libslab_strcmp (uri, uri_new)) {
+ name = g_bookmark_file_get_title (priv->store, uri, NULL);
+ if (! libslab_strcmp (name, "Help"))
+ g_bookmark_file_set_title (priv->store, uri, _("Help"));
+ else if (! libslab_strcmp (name, "Lock Screen"))
+ g_bookmark_file_set_title (priv->store, uri, _("Lock Screen"));
+ else if (! libslab_strcmp (name, "Logout"))
+ g_bookmark_file_set_title (priv->store, uri, _("Logout"));
+ else if (! libslab_strcmp (name, "Shutdown"))
+ g_bookmark_file_set_title (priv->store, uri, _("Shutdown"));
+
+ if (libslab_strcmp (uri, uri_new))
g_bookmark_file_move_item (priv->store, uri, uri_new, NULL);
- }
}
static void
@@ -1137,11 +1147,13 @@
}
else if (! strcmp (uri, "DOCUMENTS")) {
path = g_build_filename (g_get_home_dir (), "Documents", NULL);
+ name = _("Documents");
uri_new = g_filename_to_uri (path, NULL, NULL);
g_free (path);
}
else if (! strcmp (uri, "DESKTOP")) {
path = g_build_filename (g_get_home_dir (), "Desktop", NULL);
+ name = _("Desktop");
uri_new = g_filename_to_uri (path, NULL, NULL);
icon = "gnome-fs-desktop";
g_free (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]