Skip to content

Commit 70aedfb

Browse files
vascoolgitster
authored andcommitted
i18n: send-email: mark composing message for translation
When composing an e-mail, there is a message for the user whose lines begin in "GIT:" that can be marked for translation. Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3c5cd20 commit 70aedfb

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

git-send-email.perl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -672,18 +672,20 @@ sub get_patch_subject {
672672
my $tpl_subject = $initial_subject || '';
673673
my $tpl_reply_to = $initial_reply_to || '';
674674

675-
print $c <<EOT;
675+
print $c <<EOT1, Git::prefix_lines("GIT: ", __ <<EOT2), <<EOT3;
676676
From $tpl_sender # This line is ignored.
677-
GIT: Lines beginning in "GIT:" will be removed.
678-
GIT: Consider including an overall diffstat or table of contents
679-
GIT: for the patch you are writing.
680-
GIT:
681-
GIT: Clear the body content if you don't wish to send a summary.
677+
EOT1
678+
Lines beginning in "GIT:" will be removed.
679+
Consider including an overall diffstat or table of contents
680+
for the patch you are writing.
681+
682+
Clear the body content if you don't wish to send a summary.
683+
EOT2
682684
From: $tpl_sender
683685
Subject: $tpl_subject
684686
In-Reply-To: $tpl_reply_to
685687
686-
EOT
688+
EOT3
687689
for my $f (@files) {
688690
print $c get_patch_subject($f);
689691
}

0 commit comments

Comments
 (0)