Re: [PATCH v2 06/11] i18n: add--interactive: i18n of help_patch_cmd
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 25, 2016, 23:11 UTC
- Message-ID
- <xmqq7f9zy3ps.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1472646690-9699-7-git-send-email-vascomalmeida@sapo.pt>
Vasco Almeida <vascomalmeida@sapo.pt> writes:
Show 21 quoted lines
> sub help_patch_cmd {
> - my $verb = lc $patch_mode_flavour{VERB};
> - my $target = $patch_mode_flavour{TARGET};
> - print colored $help_color, <<EOF ;
> -y - $verb this hunk$target
> -n - do not $verb this hunk$target
> -q - quit; do not $verb this hunk or any of the remaining ones
> -a - $verb this hunk and all later hunks in the file
> -d - do not $verb this hunk or any of the later hunks in the file
> -g - select a hunk to go to
> + if ($patch_mode eq 'stage') {
> + print colored $help_color, __(
> +"y - stage this hunk
> +n - do not stage this hunk
> +q - quit; do not stage this hunk or any of the remaining ones
> +a - stage this hunk and all later hunks in the file
> +d - do not stage this hunk or any of the later hunks in the file");
> + } elsif ($patch_mode eq 'stash') {
> + ...
> +"\n";
> }The same "shouldn't this be done with a table not code?" comment applies to this as well, though this is not as bad as the previous one.