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:
parent
ef5feb15a7
commit
b4459f1e04
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue