[gnome-packagekit] Add translations for three new error enums
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Add translations for three new error enums
- Date: Thu, 2 Jul 2009 07:27:01 +0000 (UTC)
commit 809ca726d0b06d1fc9b5a88c971b9cea94e6e34e
Author: Richard Hughes <richard hughsie com>
Date: Thu Jul 2 08:25:52 2009 +0100
Add translations for three new error enums
src/gpk-enum.c | 18 ++++++++++++++++++
src/gpk-enum.h | 7 +++++++
2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 85ed0a5..f5fd676 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -465,6 +465,15 @@ gpk_error_enum_to_localised_text (PkErrorCodeEnum code)
case PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED:
text = _("Cannot update from untrusted source");
break;
+ case PK_ERROR_ENUM_CANNOT_GET_FILELIST:
+ text = _("Cannot get the file list");
+ break;
+ case PK_ERROR_ENUM_CANNOT_GET_REQUIRES:
+ text = _("Cannot get package requires");
+ break;
+ case PK_ERROR_ENUM_CANNOT_DISABLE_REPOSITORY:
+ text = _("Cannot disable source");
+ break;
default:
egg_warning ("Unknown error");
}
@@ -664,6 +673,15 @@ gpk_error_enum_to_localised_message (PkErrorCodeEnum code)
case PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED:
text = _("The package could not be updated from untrusted source.");
break;
+ case PK_ERROR_ENUM_CANNOT_GET_FILELIST:
+ text = _("The file list is not available for this package.");
+ break;
+ case PK_ERROR_ENUM_CANNOT_GET_REQUIRES:
+ text = _("The information about what requires this package could not be obtained.");
+ break;
+ case PK_ERROR_ENUM_CANNOT_DISABLE_REPOSITORY:
+ text = _("The specified software source could not be disabled.");
+ 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 30f3955..8a21365 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -94,6 +94,13 @@ typedef guint PkMediaTypeEnum;
/* constants defined in 0.5.0 */
#if (!PK_CHECK_VERSION(0,5,0))
#define PK_EXIT_ENUM_NEED_UNTRUSTED (PK_EXIT_ENUM_MEDIA_CHANGE_REQUIRED + 1)
+#define PK_ERROR_ENUM_CANNOT_GET_FILELIST (PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED + 1)
+#define PK_ERROR_ENUM_CANNOT_GET_REQUIRES (PK_ERROR_ENUM_CANNOT_GET_FILELIST + 1)
+#define PK_ERROR_ENUM_CANNOT_DISABLE_REPOSITORY (PK_ERROR_ENUM_CANNOT_GET_REQUIRES + 1)
+#endif
+
+/* functions defined in 0.5.0 */
+#if (!PK_CHECK_VERSION(0,5,0))
#define pk_error_code_is_need_untrusted gpk_error_code_is_need_untrusted
#define pk_client_set_only_trusted(c,t)
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]