worktree: mark lock strings with _() for translation

- 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>
This commit is contained in:
Stephen Manz 2021-07-11 00:27:19 +00:00 committed by Junio C Hamano
parent f9365c0a24
commit f7c35ea2a1

View File

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