i18n: git-notes GIT_NOTES_REWRITE_MODE error message
Use sprintf format for the error message that's displayed if GIT_NOTES_REWRITE_MODE is invalid, and leave a note in a TRANSLATORS comment indicating what the message means. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Feb 22, 2011 at 23:42 UTC
e3bd758335ccb2d46ddde628bf391d5155f87730
1 file changed
+4
-2
builtin/notes.c
+4
-2
@@ -382,8 +382,10 @@ struct notes_rewrite_cfg *init_copy_notes_for_rewrite(const char *cmd)
382
c->mode_from_env = 1;
383
c->combine = parse_combine_notes_fn(rewrite_mode_env);
384
if (!c->combine)
385
- error("Bad " GIT_NOTES_REWRITE_MODE_ENVIRONMENT
386
- " value: '%s'", rewrite_mode_env);
385
+ /* TRANSLATORS: The first %s is the name of the
386
+ environment variable, the second %s is its value */
387
+ error(_("Bad %s value: '%s'"), GIT_NOTES_REWRITE_MODE_ENVIRONMENT,
388
+ rewrite_mode_env);
389
}
390
if (rewrite_refs_env) {
391
c->refs_from_env = 1;