summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50044a3)
raw | patch | inline | side by side (parent: 50044a3)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sun, 5 Sep 2010 14:02:13 +0000 (14:02 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:58:14 +0000 (07:58 +0000) |
The first %s in "Refusing to %s notes in %s" is one of "git notes
ACTION". So we need to mark those actions for translation and later
use _().
Also add a TRANSLATORS comment explaining to translators what the
first %s means.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
ACTION". So we need to mark those actions for translation and later
use _().
Also add a TRANSLATORS comment explaining to translators what the
first %s means.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
builtin/notes.c | patch | blob | history |
diff --git a/builtin/notes.c b/builtin/notes.c
index 6aa9f5ae537cbd2bf1206ae37fe7f9574684ce44..e33e39a50a22f2e5c597f06aa6f0bbdc0b2ee048 100644 (file)
--- a/builtin/notes.c
+++ b/builtin/notes.c
t = &default_notes_tree;
if (prefixcmp(t->ref, "refs/notes/"))
- die("Refusing to %s notes in %s (outside of refs/notes/)",
- subcommand, t->ref);
+ /* TRANSLATORS: The first %s is one of "git notes ACTION",
+ e.g. "add", "copy", "append" etc. */
+ die(_("Refusing to %s notes in %s (outside of refs/notes/)"),
+ _(subcommand), t->ref);
return t;
}
usage_with_options(git_notes_list_usage, options);
}
- t = init_notes_check("list");
+ t = init_notes_check(N_("list"));
if (argc) {
if (get_sha1(argv[0], object))
die(_("Failed to resolve '%s' as a valid ref."), argv[0]);
if (get_sha1(object_ref, object))
die(_("Failed to resolve '%s' as a valid ref."), object_ref);
- t = init_notes_check("add");
+ t = init_notes_check(N_("add"));
note = get_note(t, object);
if (note) {
if (get_sha1(object_ref, object))
die(_("Failed to resolve '%s' as a valid ref."), object_ref);
- t = init_notes_check("copy");
+ t = init_notes_check(N_("copy"));
note = get_note(t, object);
if (note) {
if (get_sha1(object_ref, object))
die(_("Failed to resolve '%s' as a valid ref."), object_ref);
- t = init_notes_check("show");
+ t = init_notes_check(N_("show"));
note = get_note(t, object);
if (!note)
if (get_sha1(object_ref, object))
die(_("Failed to resolve '%s' as a valid ref."), object_ref);
- t = init_notes_check("remove");
+ t = init_notes_check(N_("remove"));
retval = remove_note(t, object);
if (retval)
usage_with_options(git_notes_prune_usage, options);
}
- t = init_notes_check("prune");
+ t = init_notes_check(N_("prune"));
prune_notes(t, (verbose ? NOTES_PRUNE_VERBOSE : 0) |
(show_only ? NOTES_PRUNE_VERBOSE|NOTES_PRUNE_DRYRUN : 0) );