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 <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vasco Almeida committed Sep 15, 2016 at 14:59 UTC 8a78d462c9d47a362b27b0386b40a44e192695d4
1 file changed +8 -8
builtin/show-branch.c
+8 -8
@@ -538,7 +538,7 @@ static void append_one_rev(const char *av)
538 for_each_ref(append_matching_ref, NULL);
539 if (saved_matches == ref_name_cnt &&
540 ref_name_cnt < MAX_REVS)
541 - error("no matching refs with %s", av);
541 + error(_("no matching refs with %s"), av);
542 if (saved_matches + 1 < ref_name_cnt)
543 sort_ref_range(saved_matches, ref_name_cnt);
544 return;
@@ -701,8 +701,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
701 *
702 * Also --all and --remotes do not make sense either.
703 */
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"));
706 }
707
708 /* 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)
725 av = fake_av;
726 ac = 1;
727 if (!*av)
728 - die("no branches given, and HEAD is not valid");
728 + die(_("no branches given, and HEAD is not valid"));
729 }
730 if (ac != 1)
731 - die("--reflog option needs one branch name");
731 + die(_("--reflog option needs one branch name"));
732
733 if (MAX_REVS < reflog)
734 die("Only %d entries can be shown at one time.",
735 MAX_REVS);
736 if (!dwim_ref(*av, strlen(*av), oid.hash, &ref))
737 - die("No such ref %s", *av);
737 + die(_("no such ref %s"), *av);
738
739 /* Has the base been specified? */
740 if (reflog_base) {
@@ -828,10 +828,10 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
828 if (MAX_REVS <= num_rev)
829 die("cannot handle more than %d revs.", MAX_REVS);
830 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]);
832 commit = lookup_commit_reference(revkey.hash);
833 if (!commit)
834 - die("cannot find commit %s (%s)",
834 + die(_("cannot find commit %s (%s)"),
835 ref_name[num_rev], oid_to_hex(&revkey));
836 parse_commit(commit);
837 mark_seen(commit, &seen);