More i18n.
* va/i18n:
i18n: diff: mark warnings for translation
i18n: credential-cache--daemon: mark advice for translation
i18n: convert mark error messages for translation
i18n: apply: mark error message for translation
i18n: apply: mark error messages for translation
i18n: apply: mark info messages for translation
i18n: apply: mark plural string for translation
@ -122,9 +122,9 @@ int check_apply_state(struct apply_state *state, int force_apply)
@@ -122,9 +122,9 @@ int check_apply_state(struct apply_state *state, int force_apply)
int is_not_gitdir = !startup_info->have_repository;
if (state->apply_with_reject && state->threeway)
return error("--reject and --3way cannot be used together.");
return error(_("--reject and --3way cannot be used together."));
if (state->cached && state->threeway)
return error("--cached and --3way cannot be used together.");
return error(_("--cached and --3way cannot be used together."));
if (state->threeway) {
if (is_not_gitdir)
return error(_("--3way outside a repository"));
@ -1586,8 +1586,8 @@ static int find_header(struct apply_state *state,
@@ -1586,8 +1586,8 @@ static int find_header(struct apply_state *state,
patch->new_name = xstrdup(patch->def_name);
}
if (!patch->is_delete && !patch->new_name) {
error("git diff header lacks filename information "
"(line %d)", state->linenr);
error(_("git diff header lacks filename information "
"(line %d)"), state->linenr);
return -128;
}
patch->is_toplevel_relative = 1;
@ -3095,8 +3095,8 @@ static int apply_binary_fragment(struct apply_state *state,
@@ -3095,8 +3095,8 @@ static int apply_binary_fragment(struct apply_state *state,
/* Binary patch is irreversible without the optional second hunk */
if (state->apply_in_reverse) {
if (!fragment->next)
return error("cannot reverse-apply a binary patch "
"without the reverse hunk to '%s'",
return error(_("cannot reverse-apply a binary patch "
"without the reverse hunk to '%s'"),
patch->new_name
? patch->new_name : patch->old_name);
fragment = fragment->next;
@ -3141,8 +3141,8 @@ static int apply_binary(struct apply_state *state,
@@ -3141,8 +3141,8 @@ static int apply_binary(struct apply_state *state,
strlen(patch->new_sha1_prefix) != 40 ||
get_oid_hex(patch->old_sha1_prefix, &oid) ||
get_oid_hex(patch->new_sha1_prefix, &oid))
return error("cannot apply binary patch to '%s' "
"without full index line", name);
return error(_("cannot apply binary patch to '%s' "
"without full index line"), name);
if (patch->old_name) {
/*
@ -3151,16 +3151,16 @@ static int apply_binary(struct apply_state *state,
@@ -3151,16 +3151,16 @@ static int apply_binary(struct apply_state *state,