Skip to content

Commit 2477beb

Browse files
pcloudsgitster
authored andcommitted
i18n: replace: 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 fbbae14 commit 2477beb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

builtin/replace.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#include "parse-options.h"
1515

1616
static const char * const git_replace_usage[] = {
17-
"git replace [-f] <object> <replacement>",
18-
"git replace -d <object>...",
19-
"git replace -l [<pattern>]",
17+
N_("git replace [-f] <object> <replacement>"),
18+
N_("git replace -d <object>..."),
19+
N_("git replace -l [<pattern>]"),
2020
NULL
2121
};
2222

@@ -115,9 +115,9 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
115115
{
116116
int list = 0, delete = 0, force = 0;
117117
struct option options[] = {
118-
OPT_BOOLEAN('l', NULL, &list, "list replace refs"),
119-
OPT_BOOLEAN('d', NULL, &delete, "delete replace refs"),
120-
OPT_BOOLEAN('f', NULL, &force, "replace the ref if it exists"),
118+
OPT_BOOLEAN('l', NULL, &list, N_("list replace refs")),
119+
OPT_BOOLEAN('d', NULL, &delete, N_("delete replace refs")),
120+
OPT_BOOLEAN('f', NULL, &force, N_("replace the ref if it exists")),
121121
OPT_END()
122122
};
123123

0 commit comments

Comments
 (0)