[gnome-packagekit] Fix singular / plural mismatch in _success_ dialog. Fixes #628814
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Fix singular / plural mismatch in _success_ dialog. Fixes #628814
- Date: Mon, 18 Oct 2010 08:57:45 +0000 (UTC)
commit 6155d08010fc25c5f25911af2c86c3cea8d171ce
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 18 09:56:24 2010 +0100
Fix singular / plural mismatch in _success_ dialog. Fixes #628814
src/gpk-dbus-task.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 368f056..70ff92c 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -1131,11 +1131,14 @@ gpk_dbus_task_install_package_names_resolve_cb (PkTask *task, GAsyncResult *res,
/* already installed? */
if (already_installed) {
if (dtask->priv->show_warning) {
+ gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_FINISHED, 0);
/* TRANSLATORS: title: package is already installed */
- gpk_modal_dialog_setup (dtask->priv->dialog, GPK_MODAL_DIALOG_PAGE_WARNING, 0);
- gpk_modal_dialog_set_title (dtask->priv->dialog, _("Failed to install packages"));
+ gpk_modal_dialog_set_title (dtask->priv->dialog,
+ ngettext ("The package is already installed",
+ "The packages are already installed"),
+ g_strv_length (dtask->priv->package_ids));
/* TRANSLATORS: message: package is already installed */
- gpk_modal_dialog_set_message (dtask->priv->dialog, _("The package is already installed"));
+ gpk_modal_dialog_set_message (dtask->priv->dialog, _("Nothing to do."));
gpk_modal_dialog_present (dtask->priv->dialog);
gpk_modal_dialog_run (dtask->priv->dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]