Skip to content

Commit 850251f

Browse files
vascoolgitster
authored andcommitted
i18n: stash: mark messages for translation
Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c041c6d commit 850251f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-stash.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ create_stash () {
100100
u_tree=$(git write-tree) &&
101101
printf 'untracked files on %s\n' "$msg" | git commit-tree $u_tree &&
102102
rm -f "$TMPindex"
103-
) ) || die "Cannot save the untracked files"
103+
) ) || die "$(gettext "Cannot save the untracked files")"
104104

105105
untracked_commit_option="-p $u_commit";
106106
else
@@ -248,7 +248,7 @@ save_stash () {
248248

249249
if test -n "$patch_mode" && test -n "$untracked"
250250
then
251-
die "Can't use --patch and --include-untracked or --all at the same time"
251+
die "$(gettext "Can't use --patch and --include-untracked or --all at the same time")"
252252
fi
253253

254254
stash_msg="$*"
@@ -494,7 +494,7 @@ apply_stash () {
494494
GIT_INDEX_FILE="$TMPindex" git-read-tree "$u_tree" &&
495495
GIT_INDEX_FILE="$TMPindex" git checkout-index --all &&
496496
rm -f "$TMPindex" ||
497-
die 'Could not restore untracked files from stash'
497+
die "$(gettext "Could not restore untracked files from stash")"
498498
fi
499499

500500
eval "

0 commit comments

Comments
 (0)