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>
This commit is contained in:
Simon Gomizelj 2013-02-28 18:49:45 -05:00 committed by Allan McRae
parent ef5feb15a7
commit b4459f1e04

View file

@ -871,7 +871,7 @@ static void _display_targets(alpm_list_t *targets, int verbose)
} }
/* print to screen */ /* print to screen */
pm_asprintf(&str, _("Packages (%zd):"), alpm_list_count(targets)); pm_asprintf(&str, "%s (%zd):", _("Packages"), alpm_list_count(targets));
printf("\n"); printf("\n");
cols = getcols(fileno(stdout)); cols = getcols(fileno(stdout));