Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: git-gc basic messages
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Tue, 22 Feb 2011 23:42:24 +0000
(23:42 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 10 Mar 2011 07:52:57 +0000
(23:52 -0800)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
e41f1cb
)
diff --git
a/builtin/gc.c
b/builtin/gc.c
index 1a80702b3d1c86b55af24be3b3396f17e9d4a21c..a2be62a574b4ea9f6f16d7f07a1f72f586f0e888 100644
(file)
--- a/
builtin/gc.c
+++ b/
builtin/gc.c
@@
-60,7
+60,7
@@
static int gc_config(const char *var, const char *value, void *cb)
if (value && strcmp(value, "now")) {
unsigned long now = approxidate("now");
if (approxidate(value) >= now)
if (value && strcmp(value, "now")) {
unsigned long now = approxidate("now");
if (approxidate(value) >= now)
- return error(
"Invalid %s: '%s'"
, var, value);
+ return error(
_("Invalid %s: '%s'")
, var, value);
}
return git_config_string(&prune_expire, var, value);
}
}
return git_config_string(&prune_expire, var, value);
}
@@
-75,7
+75,7
@@
static void append_option(const char **cmd, const char *opt, int max_length)
;
if (i + 2 >= max_length)
;
if (i + 2 >= max_length)
- die(
"Too many options specified"
);
+ die(
_("Too many options specified")
);
cmd[i++] = opt;
cmd[i] = NULL;
}
cmd[i++] = opt;
cmd[i] = NULL;
}
@@
-100,7
+100,7
@@
static int too_many_loose_objects(void)
return 0;
if (sizeof(path) <= snprintf(path, sizeof(path), "%s/17", objdir)) {
return 0;
if (sizeof(path) <= snprintf(path, sizeof(path), "%s/17", objdir)) {
- warning(
"insanely long object directory %.*s"
, 50, objdir);
+ warning(
_("insanely long object directory %.*s")
, 50, objdir);
return 0;
}
dir = opendir(path);
return 0;
}
dir = opendir(path);
@@
-251,8
+251,8
@@
int cmd_gc(int argc, const char **argv, const char *prefix)
return error(FAILED_RUN, argv_rerere[0]);
if (auto_gc && too_many_loose_objects())
return error(FAILED_RUN, argv_rerere[0]);
if (auto_gc && too_many_loose_objects())
- warning("There are too many unreachable loose objects; "
- "run 'git prune' to remove them.");
+ warning(
_(
"There are too many unreachable loose objects; "
+ "run 'git prune' to remove them.")
)
;
return 0;
}
return 0;
}