i18n: update-index: mark warnings for translation

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vasco Almeida committed Sep 15, 2016 at 14:59 UTC 43073f89848d4683656a0770e8ee8d1e1734e6e3
1 file changed +6 -6
builtin/update-index.c
+6 -6
@@ -1127,9 +1127,9 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
1127 break;
1128 case UC_DISABLE:
1129 if (git_config_get_untracked_cache() == 1)
1130 - warning("core.untrackedCache is set to true; "
1131 - "remove or change it, if you really want to "
1132 - "disable the untracked cache");
1130 + warning(_("core.untrackedCache is set to true; "
1131 + "remove or change it, if you really want to "
1132 + "disable the untracked cache"));
1133 remove_untracked_cache(&the_index);
1134 report(_("Untracked cache disabled"));
1135 break;
@@ -1139,9 +1139,9 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
1139 case UC_ENABLE:
1140 case UC_FORCE:
1141 if (git_config_get_untracked_cache() == 0)
1142 - warning("core.untrackedCache is set to false; "
1143 - "remove or change it, if you really want to "
1144 - "enable the untracked cache");
1142 + warning(_("core.untrackedCache is set to false; "
1143 + "remove or change it, if you really want to "
1144 + "enable the untracked cache"));
1145 add_untracked_cache(&the_index);
1146 report(_("Untracked cache enabled for '%s'"), get_git_work_tree());
1147 break;