Skip to content

Commit e08b735

Browse files
pcloudsgitster
authored andcommitted
i18n: pack-refs: mark parseopt strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4c68812 commit e08b735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/pack-refs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
#include "pack-refs.h"
44

55
static char const * const pack_refs_usage[] = {
6-
"git pack-refs [options]",
6+
N_("git pack-refs [options]"),
77
NULL
88
};
99

1010
int cmd_pack_refs(int argc, const char **argv, const char *prefix)
1111
{
1212
unsigned int flags = PACK_REFS_PRUNE;
1313
struct option opts[] = {
14-
OPT_BIT(0, "all", &flags, "pack everything", PACK_REFS_ALL),
15-
OPT_BIT(0, "prune", &flags, "prune loose refs (default)", PACK_REFS_PRUNE),
14+
OPT_BIT(0, "all", &flags, N_("pack everything"), PACK_REFS_ALL),
15+
OPT_BIT(0, "prune", &flags, N_("prune loose refs (default)"), PACK_REFS_PRUNE),
1616
OPT_END(),
1717
};
1818
if (parse_options(argc, argv, prefix, opts, pack_refs_usage, 0))

0 commit comments

Comments
 (0)