Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
i18n: git-submodule $update_module say + die messages
Browse files Browse the repository at this point in the history
Gettextize $update_module say and die messages. These messages needed
to be split up to make them translatable.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
avar authored and gitster committed May 21, 2011
1 parent 497ee87 commit ee653c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions git-submodule.sh
Expand Up @@ -511,24 +511,23 @@ cmd_update()
case "$update_module" in
rebase)
command="git rebase"
action="rebase"
msg="rebased onto"
die_msg="$(eval_gettext "Unable to rebase '\$sha1' in submodule path '\$path'")"
say_msg="$(eval_gettext "Submodule path '\$path': rebased into '\$sha1'")"
;;
merge)
command="git merge"
action="merge"
msg="merged in"
die_msg="$(eval_gettext "Unable to merge '\$sha1' in submodule path '\$path'")"
say_msg="$(eval_gettext "Submodule path '\$path': merged in '\$sha1'")"
;;
*)
command="git checkout $subforce -q"
action="checkout"
msg="checked out"
die_msg="$(eval_gettext "Unable to checkout '\$sha1' in submodule path '\$path'")"
say_msg="$(eval_gettext "Submodule path '\$path': checked out '\$sha1'")"
;;
esac

(clear_local_git_env; cd "$path" && $command "$sha1") ||
die "Unable to $action '$sha1' in submodule path '$path'"
say "Submodule path '$path': $msg '$sha1'"
(clear_local_git_env; cd "$path" && $command "$sha1") || die $die_msg
say $say_msg
fi

if test -n "$recursive"
Expand Down
2 changes: 1 addition & 1 deletion t/t7406-submodule-update.sh
Expand Up @@ -90,7 +90,7 @@ test_expect_success 'submodule update does not fetch already present commits' '
(cd super &&
git submodule update > ../actual 2> ../actual.err
) &&
test_cmp expected actual &&
test_i18ncmp expected actual &&
! test -s actual.err
'

Expand Down

0 comments on commit ee653c8

Please sign in to comment.