summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Murzov2010-07-09 15:52:00 +0400
committerJason Woodward2010-07-09 14:30:40 -0400
commit4358178d7f3c8ba31505c83582a96b6c93ba03c9 (patch)
tree32f486a93a44aeaa39244f365b6c9238f31f36b0 /src
parentfc0ca8ecfba93c142b86f3e9da1b590a83e99b9d (diff)
downloadslapt-get-4358178d7f3c8ba31505c83582a96b6c93ba03c9.tar.gz
Use plural form for some strings
Diffstat (limited to 'src')
-rw-r--r--src/transaction.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/transaction.c b/src/transaction.c
index d9a144a..d2a2dbc 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -261,11 +261,17 @@ int slapt_handle_transaction (const slapt_rc_config *global_config,
}
/* print the summary */
- printf(gettext("%d upgraded, "), tran->upgrade_pkgs->pkg_count - tran->upgrade_pkgs->reinstall_count);
- printf(gettext("%d reinstalled, "), tran->upgrade_pkgs->reinstall_count);
- printf(gettext("%d newly installed, "), tran->install_pkgs->pkg_count);
- printf(gettext("%d to remove, "), tran->remove_pkgs->pkg_count);
- printf(gettext("%d not upgraded.\n"), tran->exclude_pkgs->pkg_count);
+ printf(ngettext("%d upgraded, ", "%d upgraded, ",
+ tran->upgrade_pkgs->pkg_count - tran->upgrade_pkgs->reinstall_count),
+ tran->upgrade_pkgs->pkg_count - tran->upgrade_pkgs->reinstall_count);
+ printf(ngettext("%d reinstalled, ", "%d reinstalled, ",
+ tran->upgrade_pkgs->reinstall_count), tran->upgrade_pkgs->reinstall_count);
+ printf(ngettext("%d newly installed, ", "%d newly installed, ",
+ tran->install_pkgs->pkg_count), tran->install_pkgs->pkg_count);
+ printf(ngettext("%d to remove, ", "%d to remove, ",
+ tran->remove_pkgs->pkg_count), tran->remove_pkgs->pkg_count);
+ printf(ngettext("%d not upgraded.\n", "%d not upgraded.\n",
+ tran->exclude_pkgs->pkg_count), tran->exclude_pkgs->pkg_count);
/* only show this if we are going to do download something */
if (tran->upgrade_pkgs->pkg_count > 0 || tran->install_pkgs->pkg_count > 0) {