Skip to content

Commit 43073f8

Browse files
vascoolgitster
authored andcommitted
i18n: update-index: mark warnings for translation
Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 205d134 commit 43073f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

builtin/update-index.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,9 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
11271127
break;
11281128
case UC_DISABLE:
11291129
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"));
11331133
remove_untracked_cache(&the_index);
11341134
report(_("Untracked cache disabled"));
11351135
break;
@@ -1139,9 +1139,9 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
11391139
case UC_ENABLE:
11401140
case UC_FORCE:
11411141
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"));
11451145
add_untracked_cache(&the_index);
11461146
report(_("Untracked cache enabled for '%s'"), get_git_work_tree());
11471147
break;

0 commit comments

Comments
 (0)