[gnome-packagekit] Add two more translations of new error enums from 0.8.1



commit 8de2f5bd98221b7c75b536edf722e9247540e419
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jun 26 11:20:18 2012 +0100

    Add two more translations of new error enums from 0.8.1

 src/gpk-enum.c |   12 ++++++++++++
 src/gpk-enum.h |    6 +++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index ccd878a..b8512f7 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -493,6 +493,12 @@ gpk_error_enum_to_localised_text (PkErrorEnum code)
 	case PK_ERROR_ENUM_CANCELLED_PRIORITY:
 		text = _("Rescheduled due to priority");
 		break;
+	case PK_ERROR_ENUM_UNFINISHED_TRANSACTION:
+		text = _("Unfinished transaction");
+		break;
+	case PK_ERROR_ENUM_LOCK_REQUIRED:
+		text = _("Lock required");
+		break;
 	default:
 		g_warning ("Unknown error");
 	}
@@ -741,9 +747,15 @@ gpk_error_enum_to_localised_message (PkErrorEnum code)
 	case PK_ERROR_ENUM_CANNOT_FETCH_SOURCES:
 		text = _("The list of software sources could not be downloaded.");
 		break;
+	case PK_ERROR_ENUM_UNFINISHED_TRANSACTION:
+		text = _("A previous package management transaction was interrupted.");
+		break;
 	case PK_ERROR_ENUM_CANCELLED_PRIORITY:
 		text = _("The transaction has been canceled and will be retried when the system is idle.");
 		break;
+	case PK_ERROR_ENUM_LOCK_REQUIRED:
+		text = _("A package manager lock is required.");
+		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 462d0e4..19d0025 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -58,7 +58,11 @@ typedef enum {
 /* constants defined in previous versions */
 #if (!PK_CHECK_VERSION(0,7,2))
 #define PK_ROLE_ENUM_REPAIR_SYSTEM			(PK_ROLE_ENUM_UPGRADE_SYSTEM+1)
-#define PK_ROLE_ENUM_SIMULATE_REPAIR_SYSTEM		(PK_ROLE_ENUM_REPAIR_SYSTEM+1)
+#endif
+
+#if (!PK_CHECK_VERSION(0,8,1))
+#define PK_ERROR_ENUM_UNFINISHED_TRANSACTION		(PK_ERROR_ENUM_CANCELLED_PRIORITY+1)
+#define PK_ERROR_ENUM_LOCK_REQUIRED			(PK_ERROR_ENUM_UNFINISHED_TRANSACTION+1)
 #endif
 
 void		 gpk_enum_test				(gpointer	 data);



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