i18n: clean.c: match string with git-add--interactive.perl

Change strings for help to match the ones in git-add--interactive.perl. The strings now represent one entry to translate each rather then two entries each different only by an ending newline character. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vasco Almeida committed Dec 14, 2016 at 11:54 UTC 901707babc95950a6e6bd0fcea2070f63b704ef4
1 file changed +5 -5
builtin/clean.c
+5 -5
@@ -287,11 +287,11 @@ static void pretty_print_menus(struct string_list *menu_list)
287 static void prompt_help_cmd(int singleton)
288 {
289 clean_print_color(CLEAN_COLOR_HELP);
290 - printf_ln(singleton ?
290 + printf(singleton ?
291 _("Prompt help:\n"
292 "1 - select a numbered item\n"
293 "foo - select item based on unique prefix\n"
294 - " - (empty) select nothing") :
294 + " - (empty) select nothing\n") :
295 _("Prompt help:\n"
296 "1 - select a single item\n"
297 "3-5 - select a range of items\n"
@@ -299,7 +299,7 @@ static void prompt_help_cmd(int singleton)
299 "foo - select item based on unique prefix\n"
300 "-... - unselect specified items\n"
301 "* - choose all items\n"
302 - " - (empty) finish selecting"));
302 + " - (empty) finish selecting\n"));
303 clean_print_color(CLEAN_COLOR_RESET);
304 }
305
@@ -508,7 +508,7 @@ static int parse_choice(struct menu_stuff *menu_stuff,
508 if (top <= 0 || bottom <= 0 || top > menu_stuff->nr || bottom > top ||
509 (is_single && bottom != top)) {
510 clean_print_color(CLEAN_COLOR_ERROR);
511 - printf_ln(_("Huh (%s)?"), (*ptr)->buf);
511 + printf(_("Huh (%s)?\n"), (*ptr)->buf);
512 clean_print_color(CLEAN_COLOR_RESET);
513 continue;
514 }
@@ -774,7 +774,7 @@ static int ask_each_cmd(void)
774 static int quit_cmd(void)
775 {
776 string_list_clear(&del_list, 0);
777 - printf_ln(_("Bye."));
777 + printf(_("Bye.\n"));
778 return MENU_RETURN_NO_LOOP;
779 }
780