Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: send-email: mark composing message for translation
author
Vasco Almeida
<vascomalmeida@sapo.pt>
Wed, 14 Dec 2016 12:54:38 +0000
(11:54 -0100)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Dec 2016 19:00:06 +0000
(11:00 -0800)
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 <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3c5cd20
)
diff --git
a/git-send-email.perl
b/git-send-email.perl
index 7f3297cdfb076a5a881a7294aac48638060d6b9e..068d60b3e698f03f433db33d9e5f085ea57ce0a3 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-672,18
+672,20
@@
sub get_patch_subject {
my $tpl_subject = $initial_subject || '';
my $tpl_reply_to = $initial_reply_to || '';
my $tpl_subject = $initial_subject || '';
my $tpl_reply_to = $initial_reply_to || '';
- print $c <<EOT;
+ print $c <<EOT
1, Git::prefix_lines("GIT: ", __ <<EOT2), <<EOT3
;
From $tpl_sender # This line is ignored.
From $tpl_sender # This line is ignored.
-GIT: Lines beginning in "GIT:" will be removed.
-GIT: Consider including an overall diffstat or table of contents
-GIT: for the patch you are writing.
-GIT:
-GIT: Clear the body content if you don't wish to send a summary.
+EOT1
+Lines beginning in "GIT:" will be removed.
+Consider including an overall diffstat or table of contents
+for the patch you are writing.
+
+Clear the body content if you don't wish to send a summary.
+EOT2
From: $tpl_sender
Subject: $tpl_subject
In-Reply-To: $tpl_reply_to
From: $tpl_sender
Subject: $tpl_subject
In-Reply-To: $tpl_reply_to
-EOT
+EOT
3
for my $f (@files) {
print $c get_patch_subject($f);
}
for my $f (@files) {
print $c get_patch_subject($f);
}