Skip to content

Commit 8a78d46

Browse files
vascoolgitster
authored andcommitted
i18n: show-branch: mark error messages for translation
Spell the first word of messages in lowercase, following the usual style. Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ba35a2 commit 8a78d46

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

builtin/show-branch.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static void append_one_rev(const char *av)
538538
for_each_ref(append_matching_ref, NULL);
539539
if (saved_matches == ref_name_cnt &&
540540
ref_name_cnt < MAX_REVS)
541-
error("no matching refs with %s", av);
541+
error(_("no matching refs with %s"), av);
542542
if (saved_matches + 1 < ref_name_cnt)
543543
sort_ref_range(saved_matches, ref_name_cnt);
544544
return;
@@ -701,8 +701,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
701701
*
702702
* Also --all and --remotes do not make sense either.
703703
*/
704-
die("--reflog is incompatible with --all, --remotes, "
705-
"--independent or --merge-base");
704+
die(_("--reflog is incompatible with --all, --remotes, "
705+
"--independent or --merge-base"));
706706
}
707707

708708
/* If nothing is specified, show all branches by default */
@@ -725,16 +725,16 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
725725
av = fake_av;
726726
ac = 1;
727727
if (!*av)
728-
die("no branches given, and HEAD is not valid");
728+
die(_("no branches given, and HEAD is not valid"));
729729
}
730730
if (ac != 1)
731-
die("--reflog option needs one branch name");
731+
die(_("--reflog option needs one branch name"));
732732

733733
if (MAX_REVS < reflog)
734734
die("Only %d entries can be shown at one time.",
735735
MAX_REVS);
736736
if (!dwim_ref(*av, strlen(*av), oid.hash, &ref))
737-
die("No such ref %s", *av);
737+
die(_("no such ref %s"), *av);
738738

739739
/* Has the base been specified? */
740740
if (reflog_base) {
@@ -828,10 +828,10 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
828828
if (MAX_REVS <= num_rev)
829829
die("cannot handle more than %d revs.", MAX_REVS);
830830
if (get_sha1(ref_name[num_rev], revkey.hash))
831-
die("'%s' is not a valid ref.", ref_name[num_rev]);
831+
die(_("'%s' is not a valid ref."), ref_name[num_rev]);
832832
commit = lookup_commit_reference(revkey.hash);
833833
if (!commit)
834-
die("cannot find commit %s (%s)",
834+
die(_("cannot find commit %s (%s)"),
835835
ref_name[num_rev], oid_to_hex(&revkey));
836836
parse_commit(commit);
837837
mark_seen(commit, &seen);

0 commit comments

Comments
 (0)