[gnome-packagekit] Add translations for two more error enums



commit 3fb7ad315d12eb39d8aea80724847e6b9f055fc2
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jun 17 13:01:22 2009 +0100

    Add translations for two more error enums

 src/gpk-enum.c |   12 ++++++++++++
 src/gpk-enum.h |    4 +++-
 2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 724f12d..d934026 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -457,6 +457,12 @@ gpk_error_enum_to_localised_text (PkErrorCodeEnum code)
 	case PK_ERROR_ENUM_UPDATE_NOT_FOUND:
 		text = _("Update not found");
 		break;
+	case PK_ERROR_ENUM_CANNOT_INSTALL_REPO_UNSIGNED:
+		text = _("Cannot install from untrusted source");
+		break;
+	case PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED:
+		text = _("Cannot update from untrusted source");
+		break;
 	default:
 		egg_warning ("Unknown error");
 	}
@@ -650,6 +656,12 @@ gpk_error_enum_to_localised_message (PkErrorCodeEnum code)
 		text = _("The specified update could not be found.\n"
 			 "It could have already been installed or no longer available on the remote server.");
 		break;
+	case PK_ERROR_ENUM_CANNOT_INSTALL_REPO_UNSIGNED:
+		text = _("The package could not be installed from untrusted source.");
+		break;
+	case PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED:
+		text = _("The package could not be updated from untrusted source.");
+		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 10d058c..1e8dbbe 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -83,7 +83,9 @@ typedef guint PkMediaTypeEnum;
 
 /* 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)
+#define PK_ERROR_ENUM_UPDATE_NOT_FOUND			(PK_ERROR_ENUM_NOT_AUTHORIZED + 1)
+#define PK_ERROR_ENUM_CANNOT_INSTALL_REPO_UNSIGNED	(PK_ERROR_ENUM_UPDATE_NOT_FOUND + 1)
+#define PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED	(PK_ERROR_ENUM_CANNOT_INSTALL_REPO_UNSIGNED + 1)
 #endif
 
 void		 gpk_enum_test				(gpointer	 data);



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