diff mbox series

[v4,2/3] worktree: mark lock strings with `_()` for translation

Message ID ceb7a58b0049a8afa8c5f9f706b9a0b0abfb843e.1626316350.git.gitgitgadget@gmail.com (mailing list archive)
State Accepted
Commit f7c35ea2a1292d581ca79d395fc978f92a3aec5b
Headers show
Series worktree: teach add to accept --reason with --lock | expand

Commit Message

Stephen Manz July 15, 2021, 2:32 a.m. UTC
From: Stephen Manz <smanz@alum.mit.edu>

- default lock string, "added with --lock"
- temporary lock string, "initializing"

Signed-off-by: Stephen Manz <smanz@alum.mit.edu>
---
 builtin/worktree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/builtin/worktree.c b/builtin/worktree.c
index 976bf8ed063..4829b9507ff 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))