[pacman-dev] [PATCH] Give groups display text singular and plural forms
Allan McRae
allan at archlinux.org
Mon Feb 3 18:00:00 EST 2014
Reported on transifex
Signed-off-by: Allan McRae <allan at archlinux.org>
---
I suppose we could go further and not display the selection dialog when there
is only one package in the group, but I thought keeping consistency there was
better.
src/pacman/sync.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index f6ee57a..3cb73bc 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -601,8 +601,9 @@ static int process_group(alpm_list_t *dbs, const char *group, int error)
}
if(config->print == 0) {
- colon_printf(_("There are %d members in group %s:\n"), count,
- group);
+ colon_printf(_n("There is %d member in group %s:\n",
+ "There are %d members in group %s:\n", count),
+ count, group);
select_display(pkgs);
char *array = malloc(count);
if(!array) {
--
1.8.5.3
More information about the pacman-dev
mailing list