]> git.ipfire.org Git - thirdparty/git.git/commitdiff
worktree: mark lock strings with `_()` for translation
authorStephen Manz <smanz@alum.mit.edu>
Sun, 11 Jul 2021 00:27:19 +0000 (00:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jul 2021 16:29:59 +0000 (09:29 -0700)
- default lock string, "added with --lock"
- temporary lock string, "initializing"

Signed-off-by: Stephen Manz <smanz@alum.mit.edu>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c

index 976bf8ed063f1db6d2ab6582b0ed7faea4c31a42..4829b9507ffd7bb1bdc049bdddfb8f0b95458276 100644 (file)
@@ -303,9 +303,9 @@ static int add_worktree(const char *path, const char *refname,
         */
        strbuf_addf(&sb, "%s/locked", sb_repo.buf);
        if (!opts->keep_locked)
-               write_file(sb.buf, "initializing");
+               write_file(sb.buf, _("initializing"));
        else
-               write_file(sb.buf, "added with --lock");
+               write_file(sb.buf, _("added with --lock"));
 
        strbuf_addf(&sb_git, "%s/.git", path);
        if (safe_create_leading_directories_const(sb_git.buf))