Code

gettextize: git-clone "Cloning into" message
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 1 Sep 2010 15:54:30 +0000 (15:54 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2010 07:10:08 +0000 (07:10 +0000)
Split up the "Cloning into %s" and "Cloning into bare repository %s"
messages to make them easier to translate.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
builtin/clone.c
t/t5601-clone.sh

index 31c1bc67744b23e537080067aeef1d283ddde680..de23ba34631d9fd8d00f4970d94c838946b33f7d 100644 (file)
@@ -465,9 +465,12 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
                die(_("could not create leading directories of '%s'"), git_dir);
        set_git_dir(make_absolute_path(git_dir));
 
-       if (0 <= option_verbosity)
-               printf("Cloning into %s%s...\n",
-                      option_bare ? "bare repository " : "", dir);
+       if (0 <= option_verbosity) {
+               if (option_bare)
+                       printf(_("Cloning into bare repository %s\n"), dir);
+               else
+                       printf(_("Cloning into %s\n"), dir);
+       }
        init_db(option_template, INIT_DB_QUIET);
 
        /*
index 987e0c846309a8a49dbe31ce292edd55342217b3..ecb499d8aa97e66bf8fffce217da96744e9eaaf3 100755 (executable)
@@ -31,7 +31,7 @@ test_expect_success 'clone with excess parameters (2)' '
 
 '
 
-test_expect_success 'output from clone' '
+test_expect_success NO_GETTEXT_POISON 'output from clone' '
        rm -fr dst &&
        git clone -n "file://$(pwd)/src" dst >output &&
        test $(grep Clon output | wc -l) = 1