@@ -50,7 +50,7 @@ static const char *fake_ancestor;
5050static int line_termination = '\n' ;
5151static unsigned int p_context = UINT_MAX ;
5252static const char * const apply_usage [] = {
53- "git apply [options] [<patch>...]" ,
53+ N_ ( "git apply [options] [<patch>...]" ) ,
5454 NULL
5555};
5656
@@ -3959,66 +3959,66 @@ int cmd_apply(int argc, const char **argv, const char *prefix_)
39593959 const char * whitespace_option = NULL ;
39603960
39613961 struct option builtin_apply_options [] = {
3962- { OPTION_CALLBACK , 0 , "exclude" , NULL , "path" ,
3963- "don't apply changes matching the given path" ,
3962+ { OPTION_CALLBACK , 0 , "exclude" , NULL , N_ ( "path" ) ,
3963+ N_ ( "don't apply changes matching the given path" ) ,
39643964 0 , option_parse_exclude },
3965- { OPTION_CALLBACK , 0 , "include" , NULL , "path" ,
3966- "apply changes matching the given path" ,
3965+ { OPTION_CALLBACK , 0 , "include" , NULL , N_ ( "path" ) ,
3966+ N_ ( "apply changes matching the given path" ) ,
39673967 0 , option_parse_include },
3968- { OPTION_CALLBACK , 'p' , NULL , NULL , "num" ,
3969- "remove <num> leading slashes from traditional diff paths" ,
3968+ { OPTION_CALLBACK , 'p' , NULL , NULL , N_ ( "num" ) ,
3969+ N_ ( "remove <num> leading slashes from traditional diff paths" ) ,
39703970 0 , option_parse_p },
39713971 OPT_BOOLEAN (0 , "no-add" , & no_add ,
3972- "ignore additions made by the patch" ),
3972+ N_ ( "ignore additions made by the patch" ) ),
39733973 OPT_BOOLEAN (0 , "stat" , & diffstat ,
3974- "instead of applying the patch, output diffstat for the input" ),
3974+ N_ ( "instead of applying the patch, output diffstat for the input" ) ),
39753975 OPT_NOOP_NOARG (0 , "allow-binary-replacement" ),
39763976 OPT_NOOP_NOARG (0 , "binary" ),
39773977 OPT_BOOLEAN (0 , "numstat" , & numstat ,
3978- "shows number of added and deleted lines in decimal notation" ),
3978+ N_ ( "shows number of added and deleted lines in decimal notation" ) ),
39793979 OPT_BOOLEAN (0 , "summary" , & summary ,
3980- "instead of applying the patch, output a summary for the input" ),
3980+ N_ ( "instead of applying the patch, output a summary for the input" ) ),
39813981 OPT_BOOLEAN (0 , "check" , & check ,
3982- "instead of applying the patch, see if the patch is applicable" ),
3982+ N_ ( "instead of applying the patch, see if the patch is applicable" ) ),
39833983 OPT_BOOLEAN (0 , "index" , & check_index ,
3984- "make sure the patch is applicable to the current index" ),
3984+ N_ ( "make sure the patch is applicable to the current index" ) ),
39853985 OPT_BOOLEAN (0 , "cached" , & cached ,
3986- "apply a patch without touching the working tree" ),
3986+ N_ ( "apply a patch without touching the working tree" ) ),
39873987 OPT_BOOLEAN (0 , "apply" , & force_apply ,
3988- "also apply the patch (use with --stat/--summary/--check)" ),
3988+ N_ ( "also apply the patch (use with --stat/--summary/--check)" ) ),
39893989 OPT_FILENAME (0 , "build-fake-ancestor" , & fake_ancestor ,
3990- "build a temporary index based on embedded index information" ),
3990+ N_ ( "build a temporary index based on embedded index information" ) ),
39913991 { OPTION_CALLBACK , 'z' , NULL , NULL , NULL ,
3992- "paths are separated with NUL character" ,
3992+ N_ ( "paths are separated with NUL character" ) ,
39933993 PARSE_OPT_NOARG , option_parse_z },
39943994 OPT_INTEGER ('C' , NULL , & p_context ,
3995- "ensure at least <n> lines of context match" ),
3996- { OPTION_CALLBACK , 0 , "whitespace" , & whitespace_option , "action" ,
3997- "detect new or modified lines that have whitespace errors" ,
3995+ N_ ( "ensure at least <n> lines of context match" ) ),
3996+ { OPTION_CALLBACK , 0 , "whitespace" , & whitespace_option , N_ ( "action" ) ,
3997+ N_ ( "detect new or modified lines that have whitespace errors" ) ,
39983998 0 , option_parse_whitespace },
39993999 { OPTION_CALLBACK , 0 , "ignore-space-change" , NULL , NULL ,
4000- "ignore changes in whitespace when finding context" ,
4000+ N_ ( "ignore changes in whitespace when finding context" ) ,
40014001 PARSE_OPT_NOARG , option_parse_space_change },
40024002 { OPTION_CALLBACK , 0 , "ignore-whitespace" , NULL , NULL ,
4003- "ignore changes in whitespace when finding context" ,
4003+ N_ ( "ignore changes in whitespace when finding context" ) ,
40044004 PARSE_OPT_NOARG , option_parse_space_change },
40054005 OPT_BOOLEAN ('R' , "reverse" , & apply_in_reverse ,
4006- "apply the patch in reverse" ),
4006+ N_ ( "apply the patch in reverse" ) ),
40074007 OPT_BOOLEAN (0 , "unidiff-zero" , & unidiff_zero ,
4008- "don't expect at least one line of context" ),
4008+ N_ ( "don't expect at least one line of context" ) ),
40094009 OPT_BOOLEAN (0 , "reject" , & apply_with_reject ,
4010- "leave the rejected hunks in corresponding *.rej files" ),
4010+ N_ ( "leave the rejected hunks in corresponding *.rej files" ) ),
40114011 OPT_BOOLEAN (0 , "allow-overlap" , & allow_overlap ,
4012- "allow overlapping hunks" ),
4013- OPT__VERBOSE (& apply_verbosely , "be verbose" ),
4012+ N_ ( "allow overlapping hunks" ) ),
4013+ OPT__VERBOSE (& apply_verbosely , N_ ( "be verbose" ) ),
40144014 OPT_BIT (0 , "inaccurate-eof" , & options ,
4015- "tolerate incorrectly detected missing new-line at the end of file" ,
4015+ N_ ( "tolerate incorrectly detected missing new-line at the end of file" ) ,
40164016 INACCURATE_EOF ),
40174017 OPT_BIT (0 , "recount" , & options ,
4018- "do not trust the line counts in the hunk headers" ,
4018+ N_ ( "do not trust the line counts in the hunk headers" ) ,
40194019 RECOUNT ),
4020- { OPTION_CALLBACK , 0 , "directory" , NULL , "root" ,
4021- "prepend <root> to all filenames" ,
4020+ { OPTION_CALLBACK , 0 , "directory" , NULL , N_ ( "root" ) ,
4021+ N_ ( "prepend <root> to all filenames" ) ,
40224022 0 , option_parse_directory },
40234023 OPT_END ()
40244024 };
0 commit comments