[gnome-packagekit] Add translations for the update-not-found error enum



commit 62702a03fe2ed441c97a0efa49ab3003f8387fb5
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jun 9 10:53:29 2009 +0100

    Add translations for the update-not-found error enum
---
 src/gpk-enum.c |    7 +++++++
 src/gpk-enum.h |    5 +++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 8a15dfe..724f12d 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -454,6 +454,9 @@ gpk_error_enum_to_localised_text (PkErrorCodeEnum code)
 	case PK_ERROR_ENUM_NOT_AUTHORIZED:
 		text = _("Authorization failed");
 		break;
+	case PK_ERROR_ENUM_UPDATE_NOT_FOUND:
+		text = _("Update not found");
+		break;
 	default:
 		egg_warning ("Unknown error");
 	}
@@ -643,6 +646,10 @@ gpk_error_enum_to_localised_message (PkErrorCodeEnum code)
 	case PK_ERROR_ENUM_NOT_AUTHORIZED:
 		text = _("You have failed to provide correct authentication. Please check any passwords or account settings.");
 		break;
+	case PK_ERROR_ENUM_UPDATE_NOT_FOUND:
+		text = _("The specified update could not be found.\n"
+			 "It could have already been installed or no longer available on the remote server.");
+		break;
 	default:
 		egg_warning ("Unknown error, please report a bug at " GPK_BUGZILLA_URL ".\n"
 			    "More information is available in the detailed report.");
diff --git a/src/gpk-enum.h b/src/gpk-enum.h
index c9f1160..10d058c 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -81,6 +81,11 @@ typedef guint PkMediaTypeEnum;
 #define PK_ERROR_ENUM_NOT_AUTHORIZED		(PK_ERROR_ENUM_MEDIA_CHANGE_REQUIRED + 1)
 #endif
 
+/* constants defined in 0.4.9 */
+#if (!PK_CHECK_VERSION(0,4,9))
+#define PK_ERROR_ENUM_UPDATE_NOT_FOUND		(PK_ERROR_ENUM_NOT_AUTHORIZED + 1)
+#endif
+
 void		 gpk_enum_test				(gpointer	 data);
 const gchar	*gpk_role_enum_to_localised_past	(PkRoleEnum	 role)
 							 G_GNUC_CONST;



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