[gnome-packagekit] Fix make check, but don't add new translatables, and reuse an existing string
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Fix make check, but don't add new translatables, and reuse an existing string
- Date: Mon, 7 Sep 2009 11:22:56 +0000 (UTC)
commit e99cd5aec05cab079f790bc7e20991a5f0a9154e
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 7 12:21:54 2009 +0100
Fix make check, but don't add new translatables, and reuse an existing string
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 2ab38c3..c110bd5 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -252,6 +252,7 @@ static const PkEnumMatch enum_message_icon_name[] = {
{PK_MESSAGE_ENUM_CONFIG_FILES_CHANGED, "dialog-information"},
{PK_MESSAGE_ENUM_PACKAGE_ALREADY_INSTALLED, "dialog-information"},
{PK_MESSAGE_ENUM_AUTOREMOVE_IGNORED, "dialog-information"},
+ {PK_MESSAGE_ENUM_REPO_METADATA_DOWNLOAD_FAILED, "dialog-warning"},
{0, NULL}
};
@@ -879,6 +880,11 @@ gpk_message_enum_to_localised_text (PkMessageEnum message)
case PK_MESSAGE_ENUM_AUTOREMOVE_IGNORED:
text = _("Automatic cleanup is being ignored");
break;
+ case PK_MESSAGE_ENUM_REPO_METADATA_DOWNLOAD_FAILED:
+ text = _("The package download failed");
+/* string-freeze: uncomment better translation */
+// text = _("Software source download failed");
+ break;
default:
egg_warning ("message unrecognised: %i", message);
}
diff --git a/src/gpk-enum.h b/src/gpk-enum.h
index c907b5c..bb47d24 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -124,6 +124,7 @@ typedef guint PkMediaTypeEnum;
#define PK_ERROR_ENUM_PACKAGE_FAILED_TO_INSTALL (PK_ERROR_ENUM_PACKAGE_FAILED_TO_BUILD + 1)
#define PK_ERROR_ENUM_PACKAGE_FAILED_TO_REMOVE (PK_ERROR_ENUM_PACKAGE_FAILED_TO_INSTALL + 1)
#define PK_MESSAGE_ENUM_AUTOREMOVE_IGNORED (PK_MESSAGE_ENUM_PACKAGE_ALREADY_INSTALLED + 1)
+#define PK_MESSAGE_ENUM_REPO_METADATA_DOWNLOAD_FAILED (PK_MESSAGE_ENUM_AUTOREMOVE_IGNORED + 1)
#define PK_PROVIDES_ENUM_POSTSCRIPT_DRIVER (PK_PROVIDES_ENUM_HARDWARE_DRIVER + 1)
#define PK_ROLE_ENUM_SIMULATE_INSTALL_FILES (PK_ROLE_ENUM_GET_OLD_TRANSACTIONS + 1)
#define PK_ROLE_ENUM_SIMULATE_INSTALL_PACKAGES (PK_ROLE_ENUM_SIMULATE_INSTALL_FILES + 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]