i18n: git-submodule echo + eval_gettext messages
[gitweb.git] / git-submodule.sh
index 816ab3d95f4a9e85c81ad1bd92d1acda02104e33..547f5cbcfc0b9e982f47608ff577645419a52ed9 100755 (executable)
@@ -234,7 +234,7 @@ cmd_add()
        then
                if test -d "$path"/.git -o -f "$path"/.git
                then
-                       echo "Adding existing repo at '$path' to the index"
+                       eval_gettext "Adding existing repo at '\$path' to the index"; echo
                else
                        die "'$path' already exists and is not a valid git repo"
                fi
@@ -658,7 +658,10 @@ cmd_summary() {
                                ;; # removed
                        *)
                                # unexpected type
-                               echo >&2 "unexpected mode $mod_dst"
+                               (
+                                       eval_gettext "unexpected mode \$mod_dst" &&
+                                       echo
+                               ) >&2
                                continue ;;
                        esac
                fi