[gvfs] afp: do some string fixes and add some translator comments
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afp: do some string fixes and add some translator comments
- Date: Sun, 22 Jan 2012 17:33:19 +0000 (UTC)
commit 4e7e87dec90fdfa936d21e7ef208213f53a78c35
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Wed Aug 31 23:28:53 2011 +0200
afp: do some string fixes and add some translator comments
daemon/gvfsafpconnection.c | 2 +-
daemon/gvfsbackendafp.c | 10 ++++++----
daemon/gvfsbackendafpbrowse.c | 6 ++++--
3 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index ead806b..87c7f02 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -1310,7 +1310,7 @@ read_reply_sync (GInputStream *input,
if (bytes_read < read_count)
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- _("Got EOS"));
+ _("Connection unexpectedly went down"));
return FALSE;
}
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index b244506..8dd436c 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -1214,7 +1214,7 @@ delete_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
break;
case AFP_RESULT_OBJECT_LOCKED:
g_simple_async_result_set_error (simple, G_IO_ERROR, G_IO_ERROR_FAILED,
- _("Target object is marked as DeleteInhibit"));
+ _("Target object is marked as not deletable (DeleteInhibit)"));
break;
case AFP_RESULT_OBJECT_NOT_FOUND:
g_simple_async_result_set_error (simple, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
@@ -1465,7 +1465,7 @@ move_and_rename_cb (GObject *source_object, GAsyncResult *res, gpointer user_dat
break;
case AFP_RESULT_OBJECT_LOCKED:
g_simple_async_result_set_error (simple, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
- _("Object being moved is marked as RenameInhibit"));
+ _("Object being moved is marked as not renameable (RenameInhibit)"));
break;
case AFP_RESULT_OBJECT_NOT_FOUND:
g_simple_async_result_set_error (simple, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
@@ -2216,7 +2216,7 @@ rename_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
break;
case AFP_RESULT_OBJECT_LOCKED:
g_vfs_job_failed_literal (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_FAILED,
- _("Target object is marked as RenameInhibit"));
+ _("Target object is marked as not renameable (RenameInhibit)"));
break;
case AFP_RESULT_OBJECT_NOT_FOUND:
g_vfs_job_failed_literal (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
@@ -4078,7 +4078,7 @@ get_userinfo (GVfsBackendAfp *afp_backend,
break;
case AFP_RESULT_CALL_NOT_SUPPORTED:
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
- _("FPGetUserInfo is not supported by server"));
+ _("Command is not supported by server"));
break;
case AFP_RESULT_PWD_EXPIRED_ERR:
g_set_error (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
@@ -4230,10 +4230,12 @@ do_mount (GVfsBackend *backend,
server_name = afp_backend->server->server_name;
if (afp_backend->user)
+ /* Translators: first %s is volumename, second username and third servername */
display_name = g_strdup_printf (_("AFP volume %s for %s on %s"),
afp_backend->volume, afp_backend->user,
server_name);
else
+ /* Translators: first %s is volumename and second servername */
display_name = g_strdup_printf (_("AFP volume %s on %s"),
afp_backend->volume, server_name);
diff --git a/daemon/gvfsbackendafpbrowse.c b/daemon/gvfsbackendafpbrowse.c
index b86f253..5226ce8 100644
--- a/daemon/gvfsbackendafpbrowse.c
+++ b/daemon/gvfsbackendafpbrowse.c
@@ -494,10 +494,12 @@ do_mount (GVfsBackend *backend,
server_name = afp_backend->server->server_name;
if (afp_backend->user)
- display_name = g_strdup_printf (_("AFP shares for %s on %s"), afp_backend->user,
+ /* Translators: first %s is username and second serververname */
+ display_name = g_strdup_printf (_("AFP volumes for %s on %s"), afp_backend->user,
server_name);
else
- display_name = g_strdup_printf (_("AFP shares on %s"),
+ /* Translators: %s is the servername */
+ display_name = g_strdup_printf (_("AFP volumes on %s"),
server_name);
g_vfs_backend_set_display_name (backend, display_name);
g_free (display_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]