Code

gettextize: git-submodule echo + eval_gettext messages
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 13 Sep 2010 20:26:03 +0000 (20:26 +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-submodule.sh

index 5ef3d0da624fa8e7f200e42edfa5478f252e780e..5a08fe6d06d2a06a6f9fb773077136f9e9a9564d 100755 (executable)
@@ -219,7 +219,7 @@ cmd_add()
        then
                if test -d "$path"/.git -o -f "$path"/.git
                then
-                       echo "Adding existing repo at '$path' to the index"
+                       echo "$(eval_gettext "Adding existing repo at '\$path' to the index")"
                else
                        die "'$path' already exists and is not a valid git repo"
                fi
@@ -626,7 +626,7 @@ cmd_summary() {
                                ;; # removed
                        *)
                                # unexpected type
-                               echo >&2 "unexpected mode $mod_dst"
+                               echo >&2 "$(eval_gettext "unexpected mode \$mod_dst")"
                                continue ;;
                        esac
                fi