mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
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 <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
3c5cd20c7d
commit
70aedfb3ec
@@ -672,18 +672,20 @@ if ($compose) {
|
|||||||
my $tpl_subject = $initial_subject || '';
|
my $tpl_subject = $initial_subject || '';
|
||||||
my $tpl_reply_to = $initial_reply_to || '';
|
my $tpl_reply_to = $initial_reply_to || '';
|
||||||
|
|
||||||
print $c <<EOT;
|
print $c <<EOT1, 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.
|
EOT1
|
||||||
GIT: Consider including an overall diffstat or table of contents
|
Lines beginning in "GIT:" will be removed.
|
||||||
GIT: for the patch you are writing.
|
Consider including an overall diffstat or table of contents
|
||||||
GIT:
|
for the patch you are writing.
|
||||||
GIT: Clear the body content if you don't wish to send a summary.
|
|
||||||
|
Clear the body content if you don't wish to send a summary.
|
||||||
|
EOT2
|
||||||
From: $tpl_sender
|
From: $tpl_sender
|
||||||
Subject: $tpl_subject
|
Subject: $tpl_subject
|
||||||
In-Reply-To: $tpl_reply_to
|
In-Reply-To: $tpl_reply_to
|
||||||
|
|
||||||
EOT
|
EOT3
|
||||||
for my $f (@files) {
|
for my $f (@files) {
|
||||||
print $c get_patch_subject($f);
|
print $c get_patch_subject($f);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user