summaryrefslogtreecommitdiff
path: root/git-add--interactive.perl
diff options
context:
space:
mode:
authorLibravatar Vasco Almeida <vascomalmeida@sapo.pt>2016-12-14 11:54:26 -0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-12-14 11:00:04 -0800
commit5fa832640a627d6930df2194a28e9cc4aa4ef5c9 (patch)
tree6fbbdafa52a24e1e32a49300430e27d5418f99c8 /git-add--interactive.perl
parenti18n: add--interactive: mark strings for translation (diff)
downloadtgif-5fa832640a627d6930df2194a28e9cc4aa4ef5c9.tar.xz
i18n: add--interactive: mark simple here-documents for translation
Mark messages in here-documents without interpolation for translation. The here-document delimiter \EOF, which is the same as 'EOF', indicates that the text is to be treated literally without interpolation of its content. Unfortunately xgettext is not able to extract here-documents delimited with \EOF but it is with delimiter enclosed in single quotes. So change \EOF to 'EOF', although in this case does not make difference what variation of here-document to use since there is nothing to interpolate. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-add--interactive.perl')
-rwxr-xr-xgit-add--interactive.perl8
1 files changed, 5 insertions, 3 deletions
diff --git a/git-add--interactive.perl b/git-add--interactive.perl
index a4b29840a9..88c8d9dd6b 100755
--- a/git-add--interactive.perl
+++ b/git-add--interactive.perl
@@ -638,7 +638,7 @@ sub list_and_choose {
}
sub singleton_prompt_help_cmd {
- print colored $help_color, <<\EOF ;
+ print colored $help_color, __ <<'EOF' ;
Prompt help:
1 - select a numbered item
foo - select item based on unique prefix
@@ -647,7 +647,7 @@ EOF
}
sub prompt_help_cmd {
- print colored $help_color, <<\EOF ;
+ print colored $help_color, __ <<'EOF' ;
Prompt help:
1 - select a single item
3-5 - select a range of items
@@ -1581,7 +1581,9 @@ sub quit_cmd {
}
sub help_cmd {
- print colored $help_color, <<\EOF ;
+# TRANSLATORS: please do not translate the command names
+# 'status', 'update', 'revert', etc.
+ print colored $help_color, __ <<'EOF' ;
status - show paths with changes
update - add working tree state to the staged set of changes
revert - revert staged set of changes back to the HEAD version