[gvfs] afp: fixup some errormessages in AfpServer



commit 055e8dcc252a93ec8dc59a2c14d348ddbe2a0b08
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Fri Jun 17 00:03:33 2011 +0200

    afp: fixup some errormessages in AfpServer

 daemon/gvfsafpserver.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/daemon/gvfsafpserver.c b/daemon/gvfsafpserver.c
index 3813c12..334efab 100644
--- a/daemon/gvfsafpserver.c
+++ b/daemon/gvfsafpserver.c
@@ -329,7 +329,7 @@ dhx2_login (GVfsAfpServer *afp_serv,
     if (res_code == AFP_RESULT_USER_NOT_AUTH)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
-                   _("Server \"%s\" declined the submitted password"),
+                   _("AFP server %s declined the submitted password"),
                    afp_serv->server_name);
       goto error;
     }
@@ -359,7 +359,7 @@ error:
   
 generic_error:
   g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-               _("Login to server \"%s\" failed"), afp_serv->server_name);
+               _("Login to AFP server %s failed"), afp_serv->server_name);
   goto error;
 }
 
@@ -561,7 +561,7 @@ dhx_login (GVfsAfpServer *afp_serv,
     if (res_code == AFP_RESULT_USER_NOT_AUTH)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
-                   _("Server \"%s\" declined the submitted password"),
+                   _("AFP server %s declined the submitted password"),
                    afp_serv->server_name);
       goto error;
     }
@@ -583,7 +583,7 @@ error:
   
 generic_error:
   g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-               _("Login to server \"%s\" failed"), afp_serv->server_name);
+               _("Login to AFP server %s failed"), afp_serv->server_name);
   res = FALSE;
   goto done;
 }
@@ -608,7 +608,7 @@ do_login (GVfsAfpServer *afp_serv,
     if (!g_slist_find_custom (afp_serv->uams, AFP_UAM_NO_USER, g_str_equal))
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
-                           _("Server \"%s\" doesn't support anonymous login"),
+                           _("AFP server %s doesn't support anonymous login"),
                    afp_serv->server_name);
       return FALSE;
     }
@@ -635,14 +635,14 @@ do_login (GVfsAfpServer *afp_serv,
       if (res_code == AFP_RESULT_USER_NOT_AUTH)
       {
         g_set_error (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
-                     _("Anonymous login on server \"%s\" failed"),
+                     _("AFP server %s declined anonymous login"),
                      afp_serv->server_name);
         return FALSE;
       }
       else
       {
         g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                     _("Login to server \"%s\" failed"), afp_serv->server_name);
+                     _("Anonymous login to AFP server %s failed"), afp_serv->server_name);
         return FALSE;
       }
     }
@@ -663,7 +663,7 @@ do_login (GVfsAfpServer *afp_serv,
 #endif
 
 	g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-	             _("Login to server \"%s\" failed, no suitable authentication mechanism found"),
+	             _("Login to AFP server %s failed (no suitable authentication mechanism found)"),
 	             afp_serv->server_name);
 	return FALSE;
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]