From 9edb46455c4b10a7c5e40aa865af3f53698a4c48 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 25 Feb 2008 13:47:00 +0000 Subject: [PATCH] Add translator comments (#518578) 2008-02-25 Alexander Larsson * gfile.c: * ginputstream.c: * glocalfile.c: * gmount.c: * goutputstream.c: Add translator comments (#518578) svn path=/trunk/; revision=6589 --- gio/ChangeLog | 9 +++++++++ gio/gfile.c | 3 +++ gio/ginputstream.c | 3 +++ gio/glocalfile.c | 6 ++++++ gio/gmount.c | 10 ++++++++-- gio/goutputstream.c | 3 +++ 6 files changed, 32 insertions(+), 2 deletions(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 75e7759..0e5f50b 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,14 @@ 2008-02-25 Alexander Larsson + * gfile.c: + * ginputstream.c: + * glocalfile.c: + * gmount.c: + * goutputstream.c: + Add translator comments (#518578) + +2008-02-25 Alexander Larsson + * gfile.c: Reintroduce g_file_contains_file, keep around for one unstable release cycle to avoid crashing to many apps. diff --git a/gio/gfile.c b/gio/gfile.c index e2a7cdb..0d1d610 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -1255,6 +1255,9 @@ g_file_find_enclosing_mount (GFile *file, iface = G_FILE_GET_IFACE (file); if (iface->find_enclosing_mount == NULL) { + + /* Translators: This is an error message when trying to the the + enclosing (user visible) mount of a file, but none exist. */ g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("Containing mount does not exist")); diff --git a/gio/ginputstream.c b/gio/ginputstream.c index 7e801a1..fd48f7a 100644 --- a/gio/ginputstream.c +++ b/gio/ginputstream.c @@ -897,6 +897,9 @@ g_input_stream_set_pending (GInputStream *stream, GError **error) if (stream->priv->pending) { + /* Translators: This is an error you get if there is already + an operation running against this stream when you try to + start one */ g_set_error (error, G_IO_ERROR, G_IO_ERROR_PENDING, _("Stream has outstanding operation")); return FALSE; diff --git a/gio/glocalfile.c b/gio/glocalfile.c index fd9b931..3b15919 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -1031,6 +1031,8 @@ g_local_file_find_enclosing_mount (GFile *file, if (g_lstat (local->filename, &buf) != 0) { + /* Translators: This is an error message when trying to the the + enclosing (user visible) mount of a file, but none exist. */ g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("Containing mount does not exist")); @@ -1040,6 +1042,8 @@ g_local_file_find_enclosing_mount (GFile *file, mountpoint = find_mountpoint_for (local->filename, buf.st_dev); if (mountpoint == NULL) { + /* Translators: This is an error message when trying to the the + enclosing (user visible) mount of a file, but none exist. */ g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("Containing mount does not exist")); @@ -1051,6 +1055,8 @@ g_local_file_find_enclosing_mount (GFile *file, if (mount) return mount; + /* Translators: This is an error message when trying to the the + enclosing (user visible) mount of a file, but none exist. */ g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("Containing mount does not exist")); diff --git a/gio/gmount.c b/gio/gmount.c index 3b2a524..7217f67 100644 --- a/gio/gmount.c +++ b/gio/gmount.c @@ -335,6 +335,8 @@ g_mount_unmount (GMount *mount, if (iface->unmount == NULL) { + /* Translators: This is an error message for mount objects + that don't implement unmount. */ g_simple_async_report_error_in_idle (G_OBJECT (mount), callback, user_data, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, @@ -407,6 +409,8 @@ g_mount_eject (GMount *mount, if (iface->eject == NULL) { + /* Translators: This is an error message for mount objects + that don't implement eject. */ g_simple_async_report_error_in_idle (G_OBJECT (mount), callback, user_data, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, @@ -485,8 +489,10 @@ g_mount_remount (GMount *mount, iface = G_MOUNT_GET_IFACE (mount); if (iface->remount == NULL) - { - g_simple_async_report_error_in_idle (G_OBJECT (mount), + { + /* Translators: This is an error message for mount objects + that don't implement remount. */ + g_simple_async_report_error_in_idle (G_OBJECT (mount), callback, user_data, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _("mount doesn't implement remount")); diff --git a/gio/goutputstream.c b/gio/goutputstream.c index 8d2ae3a..e5b090a 100644 --- a/gio/goutputstream.c +++ b/gio/goutputstream.c @@ -1079,6 +1079,9 @@ g_output_stream_set_pending (GOutputStream *stream, if (stream->priv->pending) { + /* Translators: This is an error you get if there is already + an operation running against this stream when you try to + start one */ g_set_error (error, G_IO_ERROR, G_IO_ERROR_PENDING, _("Stream has outstanding operation")); return FALSE; -- 2.7.4