From: Vasco Almeida Date: Tue, 21 Jun 2016 11:44:09 GMT Subject: [PATCH 07/11] i18n: add--interactive: mark edit_hunk message for translation Message-ID: <20160621114413.9467-7-vascomalmeida@sapo.pt> In-Reply-To: <20160621114413.9467-1-vascomalmeida@sapo.pt> Mark message of edit_hunk_manually displayed in the editing file when user chooses 'e' option. The message had to be unfolded to allow translation of the $participle verb. Some messages end up being exactly the same for some uses cases, but left it for easer change in the future, e.g., wanting to change wording of one particular use case. Signed-off-by: Vasco Almeida --- git-add--interactive.perl | 60 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/git-add--interactive.perl b/git-add--interactive.perl index af715b3..1652a57 100755 --- a/git-add--interactive.perl +++ b/git-add--interactive.perl @@ -1057,22 +1057,60 @@ sub edit_hunk_manually { my $fh; open $fh, '>', $hunkfile or die sprintf __("failed to open hunk edit file for writing: %s"), $!; - print $fh "# Manual hunk edit mode -- see bottom for a quick guide\n"; + print $fh __("# Manual hunk edit mode -- see bottom for a quick guide\n"); print $fh @$oldtext; - my $participle = $patch_mode_flavour{PARTICIPLE}; my $is_reverse = $patch_mode_flavour{IS_REVERSE}; my ($remove_plus, $remove_minus) = $is_reverse ? ('-', '+') : ('+', '-'); - print $fh <