[gnome-packagekit] Add some missing translated strings



commit 08ba31c7c84eaf56998eb3b53f01b8db422fc5cc
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 3 11:15:13 2010 +0100

    Add some missing translated strings

 src/gpk-enum.c |   16 ++++++++++++++++
 src/gpk-enum.h |    5 +++++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 229523a..077bf50 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -258,6 +258,7 @@ static const PkEnumMatch enum_message_icon_name[] = {
 	{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"},
+	{PK_MESSAGE_ENUM_OTHER_UPDATES_HELD_BACK,	"dialog-information"},
 	{0, NULL}
 };
 
@@ -521,6 +522,12 @@ gpk_error_enum_to_localised_text (PkErrorEnum code)
 	case PK_ERROR_ENUM_PACKAGE_DATABASE_CHANGED:
 		text = _("The package database was changed");
 		break;
+	case PK_ERROR_ENUM_PROVIDE_TYPE_NOT_SUPPORTED:
+		text = _("Virtual provide type is not supported");
+		break;
+	case PK_ERROR_ENUM_INSTALL_ROOT_INVALID:
+		text = _("Install root is invalid");
+		break;
 	default:
 		egg_warning ("Unknown error");
 	}
@@ -760,6 +767,12 @@ gpk_error_enum_to_localised_message (PkErrorEnum code)
 	case PK_ERROR_ENUM_PACKAGE_DATABASE_CHANGED:
 		text = _("The package database was changed while the request was running.");
 		break;
+	case PK_ERROR_ENUM_PROVIDE_TYPE_NOT_SUPPORTED:
+		text = _("The virtual provide type is not supported by this system.");
+		break;
+	case PK_ERROR_ENUM_INSTALL_ROOT_INVALID:
+		text = _("The install root is invalid. Please contact your administrator.");
+		break;
 	default:
 		egg_warning ("Unknown error, please report a bug at " GPK_BUGZILLA_URL ".\n"
 			    "More information is available in the detailed report.");
@@ -910,6 +923,9 @@ gpk_message_enum_to_localised_text (PkMessageEnum message)
 	case PK_MESSAGE_ENUM_REPO_FOR_DEVELOPERS_ONLY:
 		text = _("This software source is for developers only");
 		break;
+	case PK_MESSAGE_ENUM_OTHER_UPDATES_HELD_BACK:
+		text = _("Other updates have been held back");
+		break;
 	default:
 		egg_warning ("message unrecognised: %i", message);
 	}
diff --git a/src/gpk-enum.h b/src/gpk-enum.h
index e0cd9bb..06ac9b3 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -70,8 +70,13 @@ typedef enum {
 #define PK_CLIENT_ERROR_LAST						(PK_CLIENT_ERROR_DECLINED_SIMULATION + 1)
 #endif
 
+#if (!PK_CHECK_VERSION(0,6,3))
+#define PK_ERROR_ENUM_PROVIDE_TYPE_NOT_SUPPORTED			(PK_ERROR_ENUM_PACKAGE_DATABASE_CHANGED + 1)
+#endif
+
 #if (!PK_CHECK_VERSION(0,6,4))
 #define PK_MESSAGE_ENUM_OTHER_UPDATES_HELD_BACK				(PK_MESSAGE_ENUM_REPO_FOR_DEVELOPERS_ONLY + 1)
+#define PK_ERROR_ENUM_INSTALL_ROOT_INVALID				(PK_ERROR_ENUM_PROVIDE_TYPE_NOT_SUPPORTED + 1)
 #endif
 
 void		 gpk_enum_test				(gpointer	 data);



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