[gnome-packagekit] trivial: add another translation for an error enum



commit f55c1ef0d102193c9e1e8866a08d3885a3e31d99
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 5 11:22:48 2010 +0000

    trivial: add another translation for an error enum

 src/gpk-enum.c |    6 ++++++
 src/gpk-enum.h |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 2b78ad5..229523a 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -518,6 +518,9 @@ gpk_error_enum_to_localised_text (PkErrorEnum code)
 	case PK_ERROR_ENUM_UPDATE_FAILED_DUE_TO_RUNNING_PROCESS:
 		text = _("Update failed due to running process");
 		break;
+	case PK_ERROR_ENUM_PACKAGE_DATABASE_CHANGED:
+		text = _("The package database was changed");
+		break;
 	default:
 		egg_warning ("Unknown error");
 	}
@@ -754,6 +757,9 @@ gpk_error_enum_to_localised_message (PkErrorEnum code)
 		text = _("A program is running that has to be closed before the update can proceed.\n"
 			 "More information is available in the detailed report.");
 		break;
+	case PK_ERROR_ENUM_PACKAGE_DATABASE_CHANGED:
+		text = _("The package database was changed while the request was running.");
+		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 ec16aa1..bc98361 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -66,6 +66,7 @@ typedef enum {
 
 #if (!PK_CHECK_VERSION(0,6,2))
 #define PK_CLIENT_ERROR_DECLINED_SIMULATION				 PK_CLIENT_ERROR_FAILED
+#define PK_ERROR_ENUM_PACKAGE_DATABASE_CHANGED				 PK_ERROR_ENUM_ENUM_LAST
 #endif
 
 void		 gpk_enum_test				(gpointer	 data);



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