i18n: diff: mark warnings for translation
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>
Vasco Almeida committed
Oct 17, 2016 at 13:15 UTC
db424979a83c11d7e3389ed505b13e7e718132ec
1 file changed
+7
-7
diff.c
+7
-7
@@ -4638,25 +4638,25 @@ static int is_summary_empty(const struct diff_queue_struct *q)
4638
}
4639
4640
static const char rename_limit_warning[] =
4641
-"inexact rename detection was skipped due to too many files.";
4641
+N_("inexact rename detection was skipped due to too many files.");
4642
4643
static const char degrade_cc_to_c_warning[] =
4644
-"only found copies from modified paths due to too many files.";
4644
+N_("only found copies from modified paths due to too many files.");
4645
4646
static const char rename_limit_advice[] =
4647
-"you may want to set your %s variable to at least "
4648
-"%d and retry the command.";
4647
+N_("you may want to set your %s variable to at least "
4648
+ "%d and retry the command.");
4649
4650
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
4651
{
4652
if (degraded_cc)
4653
- warning(degrade_cc_to_c_warning);
4653
+ warning(_(degrade_cc_to_c_warning));
4654
else if (needed)
4655
- warning(rename_limit_warning);
4655
+ warning(_(rename_limit_warning));
4656
else
4657
return;
4658
if (0 < needed && needed < 32767)
4659
- warning(rename_limit_advice, varname, needed);
4659
+ warning(_(rename_limit_advice), varname, needed);
4660
}
4661
4662
void diff_flush(struct diff_options *options)