bgo#640212 - Replace "error stating file" with friendlier messages

Non-technical users won't know that "stating" refers to stat(2), so we
just use "error when getting information" now.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero 2011-09-08 09:11:56 -05:00
parent 62a648953b
commit 571185f0f6
3 changed files with 4 additions and 4 deletions

View File

@ -263,7 +263,7 @@ ensure_keyring_directory (GError **error)
g_set_error (error,
G_IO_ERROR,
g_io_error_from_errno (errno),
_("Error statting directory `%s': %s"),
_("Error when getting information for directory `%s': %s"),
path,
strerror (errno));
g_free (path);

View File

@ -1479,7 +1479,7 @@ _g_local_file_info_get (const char *basename,
g_object_unref (info);
g_set_error (error, G_IO_ERROR,
g_io_error_from_errno (errsv),
_("Error stating file '%s': %s"),
_("Error when getting information for file '%s': %s"),
display_name, g_strerror (errsv));
g_free (display_name);
return NULL;
@ -1765,7 +1765,7 @@ _g_local_file_info_get_from_fd (int fd,
g_set_error (error, G_IO_ERROR,
g_io_error_from_errno (errsv),
_("Error stating file descriptor: %s"),
_("Error when getting information for file descriptor: %s"),
g_strerror (errsv));
return NULL;
}

View File

@ -830,7 +830,7 @@ handle_overwrite_open (const char *filename,
char *display_name = g_filename_display_name (filename);
g_set_error (error, G_IO_ERROR,
g_io_error_from_errno (errsv),
_("Error stating file '%s': %s"),
_("Error when getting information for file '%s': %s"),
display_name, g_strerror (errsv));
g_free (display_name);
goto err_out;