warning("deleting branch '%s' that has been merged to\n"
" '%s', but it is not yet merged to HEAD.",
warning(_("deleting branch '%s' that has been merged to\n"
" '%s', but it is not yet merged to HEAD."),
name, reference_name);
else
warning("not deleting branch '%s' that is not yet merged to\n"
" '%s', even though it is merged to HEAD.",
warning(_("not deleting branch '%s' that is not yet merged to\n"
" '%s', even though it is merged to HEAD."),
name, reference_name);
}
return merged;
@ -165,19 +165,19 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
@@ -165,19 +165,19 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
remote = "";
break;
default:
die("cannot use -a with -d");
die(_("cannot use -a with -d"));
}
if (!force) {
head_rev = lookup_commit_reference(head_sha1);
if (!head_rev)
die("Couldn't look up commit object for HEAD");
die(_("Couldn't look up commit object for HEAD"));
}
for (i = 0; i < argc; i++, strbuf_release(&bname)) {
strbuf_branchname(&bname, argv[i]);
if (kinds == REF_LOCAL_BRANCH && !strcmp(head, bname.buf)) {
error("Cannot delete the branch '%s' "
"which you are currently on.", bname.buf);
error(_("Cannot delete the branch '%s' "
"which you are currently on."), bname.buf);
ret = 1;
continue;
}
@ -186,7 +186,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
@@ -186,7 +186,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
name = xstrdup(mkpath(fmt, bname.buf));
if (!resolve_ref(name, sha1, 1, NULL)) {
error("%sbranch '%s' not found.",
error(_("%sbranch '%s' not found."),
remote, bname.buf);
ret = 1;
continue;
@ -194,21 +194,21 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
@@ -194,21 +194,21 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
rev = lookup_commit_reference(sha1);
if (!rev) {
error("Couldn't look up commit object for '%s'", name);
error(_("Couldn't look up commit object for '%s'"), name);
ret = 1;
continue;
}
if (!force && !branch_merged(kinds, bname.buf, rev, head_rev)) {
@ -218,7 +218,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
@@ -218,7 +218,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds)
find_unique_abbrev(sha1, DEFAULT_ABBREV));
strbuf_addf(&buf, "branch.%s", bname.buf);
if (git_config_rename_section(buf.buf, NULL) < 0)
warning("Update of config-file failed");
warning(_("Update of config-file failed"));
strbuf_release(&buf);
}
}
@ -300,7 +300,7 @@ static int append_ref(const char *refname, const unsigned char *sha1, int flags,
@@ -300,7 +300,7 @@ static int append_ref(const char *refname, const unsigned char *sha1, int flags,
if (ref_list->verbose || ref_list->with_commit || merge_filter != NO_FILTER) {
commit = lookup_commit_reference_gently(sha1, 1);
if (!commit) {
cb->ret = error("branch '%s' does not point at a commit", refname);
cb->ret = error(_("branch '%s' does not point at a commit"), refname);
return 0;
}
@ -535,7 +535,7 @@ static int print_ref_list(int kinds, int detached, int verbose, int abbrev, stru
@@ -535,7 +535,7 @@ static int print_ref_list(int kinds, int detached, int verbose, int abbrev, stru