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>
Stephen Manz committed
Jul 11, 2021 at 00:27 UTC
f7c35ea2a1292d581ca79d395fc978f92a3aec5b
1 file changed
+2
-2
builtin/worktree.c
+2
-2
@@ -303,9 +303,9 @@ static int add_worktree(const char *path, const char *refname,
303
*/
304
strbuf_addf(&sb, "%s/locked", sb_repo.buf);
305
if (!opts->keep_locked)
306
- write_file(sb.buf, "initializing");
306
+ write_file(sb.buf, _("initializing"));
307
else
308
- write_file(sb.buf, "added with --lock");
308
+ write_file(sb.buf, _("added with --lock"));
309
310
strbuf_addf(&sb_git, "%s/.git", path);
311
if (safe_create_leading_directories_const(sb_git.buf))