diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-12-30 07:39:45 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-12-30 07:39:45 +0000 |
commit | be48fff80b1902c9ef5261eb9002b425d7e6e009 (patch) | |
tree | ee1767455da5d6a4bc850aa73c0bf33e1dd0e353 | |
parent | 8927a48bf33915b8b60e3ce67583fc55559690bc (diff) | |
download | gtk+-be48fff80b1902c9ef5261eb9002b425d7e6e009.tar.gz |
Clean up some cases of errno handling (#162496, noted by Tor Lillqvist),
2004-12-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
(#162496, noted by Tor Lillqvist), and use g_filename_display_name()
for error messages. Also mark some error messages for translation,
fix capitalization of error messages.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 3 | ||||
-rw-r--r-- | gtk/gtkfilesystemunix.c | 16 |
5 files changed, 16 insertions, 12 deletions
@@ -2,7 +2,8 @@ * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling (#162496, noted by Tor Lillqvist), and use g_filename_display_name() - for error messages. + for error messages. Also mark some error messages for translation, + fix capitalization of error messages. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): Use g_value_get_boolean() for ellipsize_set. (#162447, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e06bb64d40..ee1d42012f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -2,7 +2,8 @@ * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling (#162496, noted by Tor Lillqvist), and use g_filename_display_name() - for error messages. + for error messages. Also mark some error messages for translation, + fix capitalization of error messages. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): Use g_value_get_boolean() for ellipsize_set. (#162447, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e06bb64d40..ee1d42012f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -2,7 +2,8 @@ * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling (#162496, noted by Tor Lillqvist), and use g_filename_display_name() - for error messages. + for error messages. Also mark some error messages for translation, + fix capitalization of error messages. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): Use g_value_get_boolean() for ellipsize_set. (#162447, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e06bb64d40..ee1d42012f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -2,7 +2,8 @@ * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling (#162496, noted by Tor Lillqvist), and use g_filename_display_name() - for error messages. + for error messages. Also mark some error messages for translation, + fix capitalization of error messages. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): Use g_value_get_boolean() for ellipsize_set. (#162447, diff --git a/gtk/gtkfilesystemunix.c b/gtk/gtkfilesystemunix.c index 4c96dc98f8..d6cf88fc1c 100644 --- a/gtk/gtkfilesystemunix.c +++ b/gtk/gtkfilesystemunix.c @@ -412,7 +412,7 @@ gtk_file_system_unix_get_folder (GtkFileSystem *file_system, g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_NONEXISTENT, - _("error getting information for '%s': %s"), + _("Error getting information for '%s': %s"), display_name, g_strerror (ENOENT)); @@ -426,7 +426,7 @@ gtk_file_system_unix_get_folder (GtkFileSystem *file_system, g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_NOT_FOLDER, - _("%s: %s"), + _("Error getting information for '%s': %s"), display_name, g_strerror (ENOTDIR)); @@ -492,7 +492,7 @@ gtk_file_system_unix_create_folder (GtkFileSystem *file_system, g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_NONEXISTENT, - _("error creating directory '%s': %s"), + _("Error creating directory '%s': %s"), display_name, g_strerror (save_errno)); g_free (display_name); @@ -623,7 +623,7 @@ get_icon_type (const char *filename, g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_NONEXISTENT, - _("error getting information for '%s': %s"), + _("Error getting information for '%s': %s"), display_name, g_strerror (save_errno)); g_free (display_name); @@ -1440,7 +1440,7 @@ bookmark_list_write (GSList *bookmarks, GError **error) g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_FAILED, - _("Bookmark saving failed (%s)"), + _("Bookmark saving failed: %s"), g_strerror (saved_errno)); result = FALSE; @@ -1492,7 +1492,7 @@ gtk_file_system_unix_insert_bookmark (GtkFileSystem *file_system, g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS, - "%s already exists in the bookmarks list", + _("'%s' already exists in the bookmarks list"), uri); goto out; } @@ -1554,7 +1554,7 @@ gtk_file_system_unix_remove_bookmark (GtkFileSystem *file_system, g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_NONEXISTENT, - "%s does not exist in the bookmarks list", + _("'%s' does not exist in the bookmarks list"), uri); out: @@ -1736,7 +1736,7 @@ gtk_file_folder_unix_get_info (GtkFileFolder *folder, g_set_error (error, GTK_FILE_SYSTEM_ERROR, GTK_FILE_SYSTEM_ERROR_NONEXISTENT, - _("error getting information for '%s'"), + _("Error getting information for '%s'"), display_name); g_free (display_name); info = NULL; |