Shorten Edit menu labels, dropping "in ". It will ease
authorLaurent Monin <geeqie@norz.org>
Sun, 4 May 2008 00:32:05 +0000 (00:32 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 4 May 2008 00:32:05 +0000 (00:32 +0000)
translations too, and user can define its own label in Preferences.

src/layout_util.c
src/menu.c

index 1dcaf39..6bac013 100644 (file)
@@ -875,11 +875,11 @@ static void layout_menu_edit_update(LayoutWindow *lw)
 
                        if (options->editor_name[i] && strlen(options->editor_name[i]) > 0)
                                {
-                               text = g_strdup_printf(_("_%d in %s..."), i, options->editor_name[i]);
+                               text = g_strdup_printf(_("_%d %s..."), i, options->editor_name[i]);
                                }
                        else
                                {
-                               text = g_strdup_printf(_("_%d in (unknown)..."), i);
+                               text = g_strdup_printf(_("_%d (unknown)..."), i);
                                }
                        g_object_set(action, "label", text,
                                             "sensitive", TRUE, NULL);
index 400fcc3..55f0bcf 100644 (file)
@@ -73,9 +73,9 @@ static void add_edit_items(GtkWidget *menu, GCallback func, GtkAccelGroup *accel
                        {
                        gchar *text;
                        if (options->editor_name[i] && strlen(options->editor_name[i]) > 0)
-                               text = g_strdup_printf(_("_%d in %s..."), i, options->editor_name[i]);
+                               text = g_strdup_printf(_("_%d %s..."), i, options->editor_name[i]);
                        else
-                               text = g_strdup_printf(_("_%d in (unknown)..."), i);
+                               text = g_strdup_printf(_("_%d (unknown)..."), i);
                        if (accel_grp)
                                add_menu_item(menu, text, accel_grp, i + 49, GDK_CONTROL_MASK, func, GINT_TO_POINTER(i));
                        else