@matheusbsbs / matheus-bagliano / commits / fea6128bae
Fork 0

i18n: git-gc basic messages

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 22, 2011 at 23:42 UTC fea6128baec24fcfe9433a34a06bd9d6e6298bab
1 file changed +5 -5
builtin/gc.c
+5 -5
@@ -60,7 +60,7 @@ static int gc_config(const char *var, const char *value, void *cb)
60 if (value && strcmp(value, "now")) {
61 unsigned long now = approxidate("now");
62 if (approxidate(value) >= now)
63 - return error("Invalid %s: '%s'", var, value);
63 + return error(_("Invalid %s: '%s'"), var, value);
64 }
65 return git_config_string(&prune_expire, var, value);
66 }
@@ -75,7 +75,7 @@ static void append_option(const char **cmd, const char *opt, int max_length)
75 ;
76
77 if (i + 2 >= max_length)
78 - die("Too many options specified");
78 + die(_("Too many options specified"));
79 cmd[i++] = opt;
80 cmd[i] = NULL;
81 }
@@ -100,7 +100,7 @@ static int too_many_loose_objects(void)
100 return 0;
101
102 if (sizeof(path) <= snprintf(path, sizeof(path), "%s/17", objdir)) {
103 - warning("insanely long object directory %.*s", 50, objdir);
103 + warning(_("insanely long object directory %.*s"), 50, objdir);
104 return 0;
105 }
106 dir = opendir(path);
@@ -251,8 +251,8 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
251 return error(FAILED_RUN, argv_rerere[0]);
252
253 if (auto_gc && too_many_loose_objects())
254 - warning("There are too many unreachable loose objects; "
255 - "run 'git prune' to remove them.");
254 + warning(_("There are too many unreachable loose objects; "
255 + "run 'git prune' to remove them."));
256
257 return 0;
258 }