Code

gettextize: git-pull split up "no candidate" message
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 13 Sep 2010 18:53:21 +0000 (18:53 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2010 07:58:21 +0000 (07:58 +0000)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
git-pull.sh

index a509f86deddeb143f0bf7c5b7bdcd9908d5f5543..69281b04f4ce0baaa748c2452e91f4459fb6907b 100755 (executable)
@@ -147,13 +147,14 @@ error_on_no_merge_candidates () {
 
        if [ $# -gt 1 ]; then
                if [ "$rebase" = true ]; then
-                       printf "There is no candidate for rebasing against "
+                       gettext "There is no candidate for rebasing against among the refs that you just fetched.
+Generally this means that you provided a wildcard refspec which had no
+matches on the remote end."; echo
                else
-                       printf "There are no candidates for merging "
+                       gettext "There are no candidates for merging against among the refs that you just fetched.
+Generally this means that you provided a wildcard refspec which had no
+matches on the remote end."; echo
                fi
-               echo "among the refs that you just fetched."
-               echo "Generally this means that you provided a wildcard refspec which had no"
-               echo "matches on the remote end."
        elif [ $# -gt 0 ] && [ "$1" != "$remote" ]; then
                echo "You asked to pull from the remote '$1', but did not specify"
                echo "a branch. Because this is not the default configured remote"