mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Add gettext call to 2 'failed' messages
Noticed-by: Vojtěch Gondžala <vogo@seznam.cz> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
be95e4d8a0
commit
273950473e
@ -115,7 +115,7 @@ int pacman_add(alpm_list_t *targets)
|
|||||||
for(i = targets; i; i = alpm_list_next(i)) {
|
for(i = targets; i; i = alpm_list_next(i)) {
|
||||||
char *targ = alpm_list_getdata(i);
|
char *targ = alpm_list_getdata(i);
|
||||||
if(alpm_trans_addtarget(targ) == -1) {
|
if(alpm_trans_addtarget(targ) == -1) {
|
||||||
printf("failed.\n");
|
printf(_("failed.\n"));
|
||||||
fprintf(stderr, _("error: '%s': %s\n"),
|
fprintf(stderr, _("error: '%s': %s\n"),
|
||||||
targ, alpm_strerrorlast());
|
targ, alpm_strerrorlast());
|
||||||
add_cleanup();
|
add_cleanup();
|
||||||
|
@ -107,7 +107,7 @@ int pacman_remove(alpm_list_t *targets)
|
|||||||
for(i = finaltargs; i; i = alpm_list_next(i)) {
|
for(i = finaltargs; i; i = alpm_list_next(i)) {
|
||||||
char *targ = alpm_list_getdata(i);
|
char *targ = alpm_list_getdata(i);
|
||||||
if(alpm_trans_addtarget(targ) == -1) {
|
if(alpm_trans_addtarget(targ) == -1) {
|
||||||
printf("failed.\n");
|
printf(_("failed.\n"));
|
||||||
fprintf(stderr, _("error: '%s': %s\n"),
|
fprintf(stderr, _("error: '%s': %s\n"),
|
||||||
targ, alpm_strerrorlast());
|
targ, alpm_strerrorlast());
|
||||||
remove_cleanup();
|
remove_cleanup();
|
||||||
|
Loading…
Reference in New Issue
Block a user