From: Stephen Manz Date: Sun, 11 Jul 2021 00:27:19 +0000 (+0000) Subject: worktree: mark lock strings with `_()` for translation X-Git-Tag: v2.33.0-rc0~24^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7c35ea2a1292d581ca79d395fc978f92a3aec5b;p=thirdparty%2Fgit.git worktree: mark lock strings with `_()` for translation - default lock string, "added with --lock" - temporary lock string, "initializing" Signed-off-by: Stephen Manz Reviewed-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/builtin/worktree.c b/builtin/worktree.c index 976bf8ed06..4829b9507f 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -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))