[gnome-packagekit] Add translations for the three new status enums
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Add translations for the three new status enums
- Date: Sun, 12 Jul 2009 18:04:30 +0000 (UTC)
commit 9079de8b9a7e22a71ae6db1228356da561b9f438
Author: Richard Hughes <richard hughsie com>
Date: Sun Jul 12 19:03:29 2009 +0100
Add translations for the three new status enums
src/gpk-enum.c | 20 +++++++++++++++++++-
src/gpk-enum.h | 3 +++
2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 60dfa7f..a39d93b 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -89,6 +89,9 @@ static const PkEnumMatch enum_status_icon_name[] = {
{PK_STATUS_ENUM_TEST_COMMIT, "pk-package-info"}, /* TODO: need better icon */
{PK_STATUS_ENUM_UPDATE, "pk-package-update"},
{PK_STATUS_ENUM_WAIT, "pk-wait"},
+ {PK_STATUS_ENUM_SCAN_PROCESS_LIST, "pk-package-info"},
+ {PK_STATUS_ENUM_CHECK_EXECUTABLE_FILES, "pk-package-info"},
+ {PK_STATUS_ENUM_CHECK_LIBRARIES, "pk-package-info"},
{0, NULL}
};
@@ -126,6 +129,9 @@ static const PkEnumMatch enum_status_animation[] = {
{PK_STATUS_ENUM_TEST_COMMIT, "pk-action-testing"},
{PK_STATUS_ENUM_UPDATE, "pk-action-installing"},
{PK_STATUS_ENUM_WAIT, "pk-action-waiting"},
+ {PK_STATUS_ENUM_SCAN_PROCESS_LIST, "pk-package-info"},
+ {PK_STATUS_ENUM_CHECK_EXECUTABLE_FILES, "pk-package-info"},
+ {PK_STATUS_ENUM_CHECK_LIBRARIES, "pk-package-info"},
{0, NULL}
};
@@ -971,9 +977,21 @@ gpk_status_enum_to_localised_text (PkStatusEnum status)
text = _("Waiting for package manager lock");
break;
case PK_STATUS_ENUM_WAITING_FOR_AUTH:
- /* TRANSLATORS: waitig for user to type in a password */
+ /* TRANSLATORS: waiting for user to type in a password */
text = _("Waiting for authentication");
break;
+ case PK_STATUS_ENUM_SCAN_PROCESS_LIST:
+ /* TRANSLATORS: we are updating the list of processes */
+ text = _("Updating the list of running applications");
+ break;
+ case PK_STATUS_ENUM_CHECK_EXECUTABLE_FILES:
+ /* TRANSLATORS: we are checking executable files in use */
+ text = _("Checking for applications currently in use");
+ break;
+ case PK_STATUS_ENUM_CHECK_LIBRARIES:
+ /* TRANSLATORS: we are checking for libraries in use */
+ text = _("Checking for libraries currently in use");
+ break;
default:
egg_warning ("status unrecognised: %s", pk_status_enum_to_text (status));
}
diff --git a/src/gpk-enum.h b/src/gpk-enum.h
index 4958019..4d46524 100644
--- a/src/gpk-enum.h
+++ b/src/gpk-enum.h
@@ -109,6 +109,9 @@ typedef guint PkMediaTypeEnum;
#if (!PK_CHECK_VERSION(0,5,1))
#define PK_RESTART_ENUM_SECURITY_SESSION (PK_RESTART_ENUM_SYSTEM + 1)
#define PK_RESTART_ENUM_SECURITY_SYSTEM (PK_RESTART_ENUM_SECURITY_SESSION + 1)
+#define PK_STATUS_ENUM_SCAN_PROCESS_LIST (PK_STATUS_ENUM_WAITING_FOR_AUTH + 1)
+#define PK_STATUS_ENUM_CHECK_EXECUTABLE_FILES (PK_STATUS_ENUM_SCAN_PROCESS_LIST + 1)
+#define PK_STATUS_ENUM_CHECK_LIBRARIES (PK_STATUS_ENUM_CHECK_EXECUTABLE_FILES + 1)
#endif
void gpk_enum_test (gpointer data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]