2008-02-25 Alexander Larsson <alexl@redhat.com>
+ * gfile.c:
+ * ginputstream.c:
+ * glocalfile.c:
+ * gmount.c:
+ * goutputstream.c:
+ Add translator comments (#518578)
+
+2008-02-25 Alexander Larsson <alexl@redhat.com>
+
* gfile.c:
Reintroduce g_file_contains_file, keep around for one
unstable release cycle to avoid crashing to many apps.
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"));
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;
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"));
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"));
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"));
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,
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,
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"));
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;