[gnome-packagekit] trivial: add a translation for PK_MESSAGE_REPO_FOR_DEVELOPERS_ONLY



commit 415ffdb33cbcb6fddedbda3864597987cab25d4e
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jan 7 09:41:20 2010 +0000

    trivial: add a translation for PK_MESSAGE_REPO_FOR_DEVELOPERS_ONLY

 src/gpk-enum.c |    4 ++++
 src/gpk-enum.h |    6 +++++-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 5205b26..7f54c57 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -257,6 +257,7 @@ static const PkEnumMatch enum_message_icon_name[] = {
 	{PK_MESSAGE_ENUM_PACKAGE_ALREADY_INSTALLED,	"dialog-information"},
 	{PK_MESSAGE_ENUM_AUTOREMOVE_IGNORED,	"dialog-information"},
 	{PK_MESSAGE_ENUM_REPO_METADATA_DOWNLOAD_FAILED,	"dialog-warning"},
+	{PK_MESSAGE_ENUM_REPO_FOR_DEVELOPERS_ONLY,	"dialog-warning"},
 	{0, NULL}
 };
 
@@ -900,6 +901,9 @@ gpk_message_enum_to_localised_text (PkMessageEnum message)
 	case PK_MESSAGE_ENUM_REPO_METADATA_DOWNLOAD_FAILED:
 		text = _("Software source download failed");
 		break;
+	case PK_MESSAGE_ENUM_REPO_FOR_DEVELOPERS_ONLY:
+		text = _("This software source is for developers only");
+		break;
 	default:
 		egg_warning ("message unrecognised: %i", message);
 	}
diff --git a/src/gpk-enum.h b/src/gpk-enum.h
index ee33529..549cf6c 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -55,11 +55,15 @@ typedef enum {
 	GPK_INFO_ENUM_UNKNOWN
 } GpkInfoStatusEnum;
 
-/* constants defined in 0.5.6 */
+/* constants defined in previous versions */
 #if (!PK_CHECK_VERSION(0,5,6))
 #define PK_ERROR_ENUM_UPDATE_FAILED_DUE_TO_RUNNING_PROCESS		(PK_ERROR_ENUM_PACKAGE_FAILED_TO_REMOVE + 1)
 #endif
 
+#if (!PK_CHECK_VERSION(0,5,7))
+#define PK_MESSAGE_REPO_FOR_DEVELOPERS_ONLY				(PK_MESSAGE_ENUM_REPO_METADATA_DOWNLOAD_FAILED + 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]