builtin/clone.c: mark strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Feb 27, 2016 at 13:41 UTC
39ad4f39cc502c2a9c355d6b1eb62f30fca3d2c8
1 file changed
+5
-5
builtin/clone.c
+5
-5
@@ -236,8 +236,8 @@ static char *guess_dir_name(const char *repo, int is_bundle, int is_bare)
236
strip_suffix_mem(start, &len, is_bundle ? ".bundle" : ".git");
237
238
if (!len || (len == 1 && *start == '/'))
239
- die("No directory name could be guessed.\n"
240
- "Please specify a directory on the command line");
239
+ die(_("No directory name could be guessed.\n"
240
+ "Please specify a directory on the command line"));
241
242
if (is_bare)
243
dir = xstrfmt("%.*s.git", (int)len, start);
@@ -644,7 +644,7 @@ static void update_remote_refs(const struct ref *refs,
644
if (create_symref(head_ref.buf,
645
remote_head_points_at->peer_ref->name,
646
msg) < 0)
647
- die("unable to update %s", head_ref.buf);
647
+ die(_("unable to update %s"), head_ref.buf);
648
strbuf_release(&head_ref);
649
}
650
}
@@ -656,7 +656,7 @@ static void update_head(const struct ref *our, const struct ref *remote,
656
if (our && skip_prefix(our->name, "refs/heads/", &head)) {
657
/* Local default branch link */
658
if (create_symref("HEAD", our->name, NULL) < 0)
659
- die("unable to update HEAD");
659
+ die(_("unable to update HEAD"));
660
if (!option_bare) {
661
update_ref(msg, "HEAD", our->old_oid.hash, NULL, 0,
662
UPDATE_REFS_DIE_ON_ERR);
@@ -750,7 +750,7 @@ static void write_config(struct string_list *config)
750
for (i = 0; i < config->nr; i++) {
751
if (git_config_parse_parameter(config->items[i].string,
752
write_one_config, NULL) < 0)
753
- die("unable to write parameters to config file");
753
+ die(_("unable to write parameters to config file"));
754
}
755
}
756