[gnome-packagekit] Add two new translated error codes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Add two new translated error codes
- Date: Wed, 4 May 2011 11:13:29 +0000 (UTC)
commit 6bde791769b32680c7238b7e44741243bfd99352
Author: Richard Hughes <richard hughsie com>
Date: Wed May 4 12:13:17 2011 +0100
Add two new translated error codes
src/gpk-enum.c | 12 ++++++++++++
src/gpk-enum.h | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index dcbe9ae..7a72d83 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -492,6 +492,12 @@ gpk_error_enum_to_localised_text (PkErrorEnum code)
case PK_ERROR_ENUM_INSTALL_ROOT_INVALID:
text = _("Install root is invalid");
break;
+ case PK_ERROR_ENUM_CANNOT_FETCH_SOURCES:
+ text = _("Cannot fetch install sources");
+ break;
+ case PK_ERROR_ENUM_CANCELLED_PRIORITY:
+ text = _("Rescheduled due to priority");
+ break;
default:
g_warning ("Unknown error");
}
@@ -737,6 +743,12 @@ gpk_error_enum_to_localised_message (PkErrorEnum code)
case PK_ERROR_ENUM_INSTALL_ROOT_INVALID:
text = _("The install root is invalid. Please contact your administrator.");
break;
+ case PK_ERROR_ENUM_CANNOT_FETCH_SOURCES:
+ text = _("The list of software sources could not be downloaded.");
+ break;
+ case PK_ERROR_ENUM_CANCELLED_PRIORITY:
+ text = _("The transaction has been cancelled and will be retried when the system is idle.");
+ break;
default:
g_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 dc8c95f..b1a2eb6 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -57,7 +57,12 @@ typedef enum {
/* constants defined in previous versions */
#if (!PK_CHECK_VERSION(0,6,11))
-#define PK_ROLE_ENUM_UPGRADE_SYSTEM (PK_ROLE_ENUM_SIMULATE_UPDATE_PACKAGES + 1)
+#define PK_ROLE_ENUM_UPGRADE_SYSTEM G_MAXINT
+#define PK_ERROR_ENUM_CANNOT_FETCH_SOURCES G_MAXINT
+#endif
+
+#if (!PK_CHECK_VERSION(0,6,14))
+#define PK_ERROR_ENUM_CANCELLED_PRIORITY G_MAXINT
#endif
void gpk_enum_test (gpointer data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]