summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Gomizelj <simongmzlj@gmail.com>2013-02-28 18:49:45 -0500
committerAllan McRae <allan@archlinux.org>2013-03-07 15:55:03 +1000
commitb4459f1e04b5666add1ad0f38a155e798bac130a (patch)
treec84c5adf16f21472756cbe7ec9f7000112fe3de3
parentef5feb15a7403c6b7ea258927bb04c9111653669 (diff)
downloadpacman-b4459f1e04b5666add1ad0f38a155e798bac130a.tar.xz
split "Packages (%zd):" message
Basically all translation messages that need colouring but _also_ happen to be format strings need to be split up. This makes it easy to conditionally embed colour codes into the output at runtime. Signed-off-by: Simon Gomizelj <simongmzlj@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--src/pacman/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 182450bf..90892afc 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -871,7 +871,7 @@ static void _display_targets(alpm_list_t *targets, int verbose)
}
/* print to screen */
- pm_asprintf(&str, _("Packages (%zd):"), alpm_list_count(targets));
+ pm_asprintf(&str, "%s (%zd):", _("Packages"), alpm_list_count(targets));
printf("\n");
cols = getcols(fileno(stdout));