[evolution-data-server] Bug #655997 - Unneeded context specifiers



commit 0e44c90ae7967443ca4ae025394908f4ca75bcb2
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 23 16:03:06 2011 +0200

    Bug #655997 - Unneeded context specifiers

 addressbook/libebook/e-book-client.c |   12 ++++----
 calendar/libecal/e-cal-client.c      |   14 +++++-----
 libedataserver/e-client.c            |   44 +++++++++++++++++-----------------
 3 files changed, 35 insertions(+), 35 deletions(-)
---
diff --git a/addressbook/libebook/e-book-client.c b/addressbook/libebook/e-book-client.c
index 21faab5..db1c9f1 100644
--- a/addressbook/libebook/e-book-client.c
+++ b/addressbook/libebook/e-book-client.c
@@ -82,18 +82,18 @@ e_book_client_error_to_string (EBookClientError code)
 {
 	switch (code) {
 	case E_BOOK_CLIENT_ERROR_NO_SUCH_BOOK:
-		return C_("BookClientError", "No such book");
+		return _("No such book");
 	case E_BOOK_CLIENT_ERROR_CONTACT_NOT_FOUND:
-		return C_("BookClientError", "Contact not found");
+		return _("Contact not found");
 	case E_BOOK_CLIENT_ERROR_CONTACT_ID_ALREADY_EXISTS:
-		return C_("BookClientError", "Contact ID already exists");
+		return _("Contact ID already exists");
 	case E_BOOK_CLIENT_ERROR_NO_SUCH_SOURCE:
-		return C_("BookClientError", "No such source");
+		return _("No such source");
 	case E_BOOK_CLIENT_ERROR_NO_SPACE:
-		return C_("BookClientError", "No space");
+		return _("No space");
 	}
 
-	return C_("BookClientError", "Unknown error");
+	return _("Unknown error");
 }
 
 /**
diff --git a/calendar/libecal/e-cal-client.c b/calendar/libecal/e-cal-client.c
index 662577d..5891d78 100644
--- a/calendar/libecal/e-cal-client.c
+++ b/calendar/libecal/e-cal-client.c
@@ -124,20 +124,20 @@ e_cal_client_error_to_string (ECalClientError code)
 {
 	switch (code) {
 	case E_CAL_CLIENT_ERROR_NO_SUCH_CALENDAR:
-		return C_("CalClientError", "No such calendar");
+		return _("No such calendar");
 	case E_CAL_CLIENT_ERROR_OBJECT_NOT_FOUND:
-		return C_("CalClientError", "Object not found");
+		return _("Object not found");
 	case E_CAL_CLIENT_ERROR_INVALID_OBJECT:
-		return C_("CalClientError", "Invalid object");
+		return _("Invalid object");
 	case E_CAL_CLIENT_ERROR_UNKNOWN_USER:
-		return C_("CalClientError", "Unknown user");
+		return _("Unknown user");
 	case E_CAL_CLIENT_ERROR_OBJECT_ID_ALREADY_EXISTS:
-		return C_("CalClientError", "Object ID already exists");
+		return _("Object ID already exists");
 	case E_CAL_CLIENT_ERROR_INVALID_RANGE:
-		return C_("CalClientError", "Invalid range");
+		return _("Invalid range");
 	}
 
-	return C_("CalClientError", "Unknown error");
+	return _("Unknown error");
 }
 
 /**
diff --git a/libedataserver/e-client.c b/libedataserver/e-client.c
index f7fe39b..4d3eef1 100644
--- a/libedataserver/e-client.c
+++ b/libedataserver/e-client.c
@@ -106,50 +106,50 @@ e_client_error_to_string (EClientError code)
 {
 	switch (code) {
 	case E_CLIENT_ERROR_INVALID_ARG:
-		return C_("ClientError", "Invalid argument");
+		return _("Invalid argument");
 	case E_CLIENT_ERROR_BUSY:
-		return C_("ClientError", "Backend is busy");
+		return _("Backend is busy");
 	case E_CLIENT_ERROR_SOURCE_NOT_LOADED:
-		return C_("ClientError", "Source not loaded");
+		return _("Source not loaded");
 	case E_CLIENT_ERROR_SOURCE_ALREADY_LOADED:
-		return C_("ClientError", "Source already loaded");
+		return _("Source already loaded");
 	case E_CLIENT_ERROR_AUTHENTICATION_FAILED:
-		return C_("ClientError", "Authentication failed");
+		return _("Authentication failed");
 	case E_CLIENT_ERROR_AUTHENTICATION_REQUIRED:
-		return C_("ClientError", "Authentication required");
+		return _("Authentication required");
 	case E_CLIENT_ERROR_REPOSITORY_OFFLINE:
-		return C_("ClientError", "Repository offline");
+		return _("Repository offline");
 	case E_CLIENT_ERROR_OFFLINE_UNAVAILABLE:
-		return C_("ClientError", "Offline unavailable");
+		return _("Offline unavailable");
 	case E_CLIENT_ERROR_PERMISSION_DENIED:
-		return C_("ClientError", "Permission denied");
+		return _("Permission denied");
 	case E_CLIENT_ERROR_CANCELLED:
-		return C_("ClientError", "Cancelled");
+		return _("Cancelled");
 	case E_CLIENT_ERROR_COULD_NOT_CANCEL:
-		return C_("ClientError", "Could not cancel");
+		return _("Could not cancel");
 	case E_CLIENT_ERROR_NOT_SUPPORTED:
-		return C_("ClientError", "Not supported");
+		return _("Not supported");
 	case E_CLIENT_ERROR_UNSUPPORTED_AUTHENTICATION_METHOD:
-		return C_("ClientError", "Unsupported authentication method");
+		return _("Unsupported authentication method");
 	case E_CLIENT_ERROR_TLS_NOT_AVAILABLE:
-		return C_("ClientError", "TLS not available");
+		return _("TLS not available");
 	case E_CLIENT_ERROR_SEARCH_SIZE_LIMIT_EXCEEDED:
-		return C_("ClientError", "Search size limit exceeded");
+		return _("Search size limit exceeded");
 	case E_CLIENT_ERROR_SEARCH_TIME_LIMIT_EXCEEDED:
-		return C_("ClientError", "Search time limit exceeded");
+		return _("Search time limit exceeded");
 	case E_CLIENT_ERROR_INVALID_QUERY:
-		return C_("ClientError", "Invalid query");
+		return _("Invalid query");
 	case E_CLIENT_ERROR_QUERY_REFUSED:
-		return C_("ClientError", "Query refused");
+		return _("Query refused");
 	case E_CLIENT_ERROR_DBUS_ERROR:
-		return C_("ClientError", "D-Bus error");
+		return _("D-Bus error");
 	case E_CLIENT_ERROR_OTHER_ERROR:
-		return C_("ClientError", "Other error");
+		return _("Other error");
 	case E_CLIENT_ERROR_NOT_OPENED:
-		return C_("ClientError", "Backend is not opened yet");
+		return _("Backend is not opened yet");
 	}
 
-	return C_("ClientError", "Unknown error");
+	return _("Unknown error");
 }
 
 /**



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