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>
Vasco Almeida committed
Dec 14, 2016 at 11:54 UTC
5fa832640a627d6930df2194a28e9cc4aa4ef5c9
1 file changed
+5
-3
git-add--interactive.perl
+5
-3
@@ -638,7 +638,7 @@ sub list_and_choose {
638
}
639
640
sub singleton_prompt_help_cmd {
641
- print colored $help_color, <<\EOF ;
641
+ print colored $help_color, __ <<'EOF' ;
642
Prompt help:
643
1 - select a numbered item
644
foo - select item based on unique prefix
@@ -647,7 +647,7 @@ EOF
647
}
648
649
sub prompt_help_cmd {
650
- print colored $help_color, <<\EOF ;
650
+ print colored $help_color, __ <<'EOF' ;
651
Prompt help:
652
1 - select a single item
653
3-5 - select a range of items
@@ -1581,7 +1581,9 @@ sub quit_cmd {
1581
}
1582
1583
sub help_cmd {
1584
- print colored $help_color, <<\EOF ;
1584
+# TRANSLATORS: please do not translate the command names
1585
+# 'status', 'update', 'revert', etc.
1586
+ print colored $help_color, __ <<'EOF' ;
1587
status - show paths with changes
1588
update - add working tree state to the staged set of changes
1589
revert - revert staged set of changes back to the HEAD version