Skip to content

Commit 4c68812

Browse files
pcloudsgitster
authored andcommitted
i18n: pack-objects: 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 e6b895e commit 4c68812

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

builtin/pack-objects.c

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "thread-utils.h"
2121

2222
static const char *pack_usage[] = {
23-
"git pack-objects --stdout [options...] [< ref-list | < object-list]",
24-
"git pack-objects [options...] base-name [< ref-list | < object-list]",
23+
N_("git pack-objects --stdout [options...] [< ref-list | < object-list]"),
24+
N_("git pack-objects [options...] base-name [< ref-list | < object-list]"),
2525
NULL
2626
};
2727

@@ -2445,67 +2445,67 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
24452445
int rev_list_unpacked = 0, rev_list_all = 0, rev_list_reflog = 0;
24462446
struct option pack_objects_options[] = {
24472447
OPT_SET_INT('q', "quiet", &progress,
2448-
"do not show progress meter", 0),
2448+
N_("do not show progress meter"), 0),
24492449
OPT_SET_INT(0, "progress", &progress,
2450-
"show progress meter", 1),
2450+
N_("show progress meter"), 1),
24512451
OPT_SET_INT(0, "all-progress", &progress,
2452-
"show progress meter during object writing phase", 2),
2452+
N_("show progress meter during object writing phase"), 2),
24532453
OPT_BOOL(0, "all-progress-implied",
24542454
&all_progress_implied,
2455-
"similar to --all-progress when progress meter is shown"),
2456-
{ OPTION_CALLBACK, 0, "index-version", NULL, "version[,offset]",
2457-
"write the pack index file in the specified idx format version",
2455+
N_("similar to --all-progress when progress meter is shown")),
2456+
{ OPTION_CALLBACK, 0, "index-version", NULL, N_("version[,offset]"),
2457+
N_("write the pack index file in the specified idx format version"),
24582458
0, option_parse_index_version },
24592459
OPT_ULONG(0, "max-pack-size", &pack_size_limit,
2460-
"maximum size of each output pack file"),
2460+
N_("maximum size of each output pack file")),
24612461
OPT_BOOL(0, "local", &local,
2462-
"ignore borrowed objects from alternate object store"),
2462+
N_("ignore borrowed objects from alternate object store")),
24632463
OPT_BOOL(0, "incremental", &incremental,
2464-
"ignore packed objects"),
2464+
N_("ignore packed objects")),
24652465
OPT_INTEGER(0, "window", &window,
2466-
"limit pack window by objects"),
2466+
N_("limit pack window by objects")),
24672467
OPT_ULONG(0, "window-memory", &window_memory_limit,
2468-
"limit pack window by memory in addition to object limit"),
2468+
N_("limit pack window by memory in addition to object limit")),
24692469
OPT_INTEGER(0, "depth", &depth,
2470-
"maximum length of delta chain allowed in the resulting pack"),
2470+
N_("maximum length of delta chain allowed in the resulting pack")),
24712471
OPT_BOOL(0, "reuse-delta", &reuse_delta,
2472-
"reuse existing deltas"),
2472+
N_("reuse existing deltas")),
24732473
OPT_BOOL(0, "reuse-object", &reuse_object,
2474-
"reuse existing objects"),
2474+
N_("reuse existing objects")),
24752475
OPT_BOOL(0, "delta-base-offset", &allow_ofs_delta,
2476-
"use OFS_DELTA objects"),
2476+
N_("use OFS_DELTA objects")),
24772477
OPT_INTEGER(0, "threads", &delta_search_threads,
2478-
"use threads when searching for best delta matches"),
2478+
N_("use threads when searching for best delta matches")),
24792479
OPT_BOOL(0, "non-empty", &non_empty,
2480-
"do not create an empty pack output"),
2480+
N_("do not create an empty pack output")),
24812481
OPT_BOOL(0, "revs", &use_internal_rev_list,
2482-
"read revision arguments from standard input"),
2482+
N_("read revision arguments from standard input")),
24832483
{ OPTION_SET_INT, 0, "unpacked", &rev_list_unpacked, NULL,
2484-
"limit the objects to those that are not yet packed",
2484+
N_("limit the objects to those that are not yet packed"),
24852485
PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 },
24862486
{ OPTION_SET_INT, 0, "all", &rev_list_all, NULL,
2487-
"include objects reachable from any reference",
2487+
N_("include objects reachable from any reference"),
24882488
PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 },
24892489
{ OPTION_SET_INT, 0, "reflog", &rev_list_reflog, NULL,
2490-
"include objects referred by reflog entries",
2490+
N_("include objects referred by reflog entries"),
24912491
PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 },
24922492
OPT_BOOL(0, "stdout", &pack_to_stdout,
2493-
"output pack to stdout"),
2493+
N_("output pack to stdout")),
24942494
OPT_BOOL(0, "include-tag", &include_tag,
2495-
"include tag objects that refer to objects to be packed"),
2495+
N_("include tag objects that refer to objects to be packed")),
24962496
OPT_BOOL(0, "keep-unreachable", &keep_unreachable,
2497-
"keep unreachable objects"),
2498-
{ OPTION_CALLBACK, 0, "unpack-unreachable", NULL, "time",
2499-
"unpack unreachable objects newer than <time>",
2497+
N_("keep unreachable objects")),
2498+
{ OPTION_CALLBACK, 0, "unpack-unreachable", NULL, N_("time"),
2499+
N_("unpack unreachable objects newer than <time>"),
25002500
PARSE_OPT_OPTARG, option_parse_unpack_unreachable },
25012501
OPT_BOOL(0, "thin", &thin,
2502-
"create thin packs"),
2502+
N_("create thin packs")),
25032503
OPT_BOOL(0, "honor-pack-keep", &ignore_packed_keep,
2504-
"ignore packs that have companion .keep file"),
2504+
N_("ignore packs that have companion .keep file")),
25052505
OPT_INTEGER(0, "compression", &pack_compression_level,
2506-
"pack compression level"),
2506+
N_("pack compression level")),
25072507
OPT_SET_INT(0, "keep-true-parents", &grafts_replace_parents,
2508-
"do not hide commits by grafts", 0),
2508+
N_("do not hide commits by grafts"), 0),
25092509
OPT_END(),
25102510
};
25112511

0 commit comments

Comments
 (0)