mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Fix 'None' text so we don't have to translate it twice
We had one "None" and one "None\n" string; we can let the program do the addition of the newline so we don't have to. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
5b51dbb11e
commit
31c7e82a51
@ -469,7 +469,7 @@ void list_display(const char *title, const alpm_list_t *list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!list) {
|
if(!list) {
|
||||||
printf(_("None\n"));
|
printf("%s\n", _("None"));
|
||||||
} else {
|
} else {
|
||||||
for(i = list, cols = len; i; i = alpm_list_next(i)) {
|
for(i = list, cols = len; i; i = alpm_list_next(i)) {
|
||||||
char *str = alpm_list_getdata(i);
|
char *str = alpm_list_getdata(i);
|
||||||
@ -503,7 +503,7 @@ void list_display_linebreak(const char *title, const alpm_list_t *list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!list) {
|
if(!list) {
|
||||||
printf(_("None\n"));
|
printf("%s\n", _("None"));
|
||||||
} else {
|
} else {
|
||||||
/* Print the first element */
|
/* Print the first element */
|
||||||
indentprint((const char *) alpm_list_getdata(list), len);
|
indentprint((const char *) alpm_list_getdata(list), len);
|
||||||
|
Loading…
Reference in New Issue
Block a user