Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: diff: mark warnings for translation
author
Vasco Almeida
<vascomalmeida@sapo.pt>
Mon, 17 Oct 2016 13:15:29 +0000
(13:15 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 17 Oct 2016 21:51:48 +0000
(14:51 -0700)
Mark rename_limit_warning and degrade_cc_to_c_warning and
rename_limit_warning for translation.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
af64f20
)
diff --git
a/diff.c
b/diff.c
index 1d304e0550766edf4679f089aafac4de14258482..16873175685e9eefb9d85fa628cedd46da8ff023 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-4638,25
+4638,25
@@
static int is_summary_empty(const struct diff_queue_struct *q)
}
static const char rename_limit_warning[] =
}
static const char rename_limit_warning[] =
-
"inexact rename detection was skipped due to too many files."
;
+
N_("inexact rename detection was skipped due to too many files.")
;
static const char degrade_cc_to_c_warning[] =
static const char degrade_cc_to_c_warning[] =
-
"only found copies from modified paths due to too many files."
;
+
N_("only found copies from modified paths due to too many files.")
;
static const char rename_limit_advice[] =
static const char rename_limit_advice[] =
-"you may want to set your %s variable to at least "
-
"%d and retry the command."
;
+
N_(
"you may want to set your %s variable to at least "
+
"%d and retry the command.")
;
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
{
if (degraded_cc)
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
{
if (degraded_cc)
- warning(
degrade_cc_to_c_warning
);
+ warning(
_(degrade_cc_to_c_warning)
);
else if (needed)
else if (needed)
- warning(
rename_limit_warning
);
+ warning(
_(rename_limit_warning)
);
else
return;
if (0 < needed && needed < 32767)
else
return;
if (0 < needed && needed < 32767)
- warning(
rename_limit_advice
, varname, needed);
+ warning(
_(rename_limit_advice)
, varname, needed);
}
void diff_flush(struct diff_options *options)
}
void diff_flush(struct diff_options *options)