GNOME Bugzilla – Bug 439480
translations
Last modified: 2007-07-13 16:38:58 UTC
the recent-files code lacks translation in various places. gtk_recent_chooser_default_add_filter: name = "Untitled filter"; gtk_recent_manager_real_changed: filename_warning ("Attempting to store changes into `%s', " "but failed: %s", priv->filename, write_error->message); filename_warning ("Unable to stat() the recently used resources file " "at `%s': %s.", priv->filename, g_strerror (errno)); [fixing the latter probably will make it necessary to save errno] gtk_recent_manager_poll_timeout: filename_warning ("Unable to stat() the recently used resources file " "at `%s': %s.", priv->filename, g_strerror (errno)); build_recent_items_list: filename_warning ("Attempting to read the recently used resources file " "at `%s', but an error occurred: %s. Aborting.", priv->filename, g_strerror (errno)); filename_warning ("Attempting to read the recently used resources file " "at `%s', but the parser failed: %s.", priv->filename, read_error->message); get_uri_shortname_for_display: name = g_strdup_printf ("%s: %s", method, local_file); [rtl languages might want something else here. some language might require a space before the colon] gtk_recent_chooser_menu_create_item: if (count <= 10) label = g_strdup_printf ("_%d. %s", count, escaped); else label = g_strdup_printf ("%d. %s", count, escaped); [As above. Also s/10/9/.]
I have handled the "Untitled filter" and "%d. %s" strings. I don't think the "%s: %S" in get_uri_shortname_for_display needs to be translated, that is just a fallback case. I left out the errors, since I think we already have a bug about marking error messages as translatable. 2007-07-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkrecentmanager.c (get_uri_shortname_for_display): Avoid gratitious use of g_strdup_printf(). * gtk/gtkrecentchooserdefault.c: * gtk/gtkrecentchoosermenu.c: Mark some strings for translation. (#439480, Murray Cumming)