i18n: config: 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>

Nguyễn Thái Ngọc Duy committed Aug 20, 2012 at 19:32 UTC 1bd31ce6912f55f94777fee244c907378bb0b5f6
1 file changed +28 -28
builtin/config.c
+28 -28
@@ -4,7 +4,7 @@
4 #include "parse-options.h"
5
6 static const char *const builtin_config_usage[] = {
7 - "git config [options]",
7 + N_("git config [options]"),
8 NULL
9 };
10
@@ -49,33 +49,33 @@ static int respect_includes = -1;
49 #define TYPE_PATH (1<<3)
50
51 static struct option builtin_config_options[] = {
52 - OPT_GROUP("Config file location"),
53 - OPT_BOOLEAN(0, "global", &use_global_config, "use global config file"),
54 - OPT_BOOLEAN(0, "system", &use_system_config, "use system config file"),
55 - OPT_BOOLEAN(0, "local", &use_local_config, "use repository config file"),
56 - OPT_STRING('f', "file", &given_config_file, "file", "use given config file"),
57 - OPT_GROUP("Action"),
58 - OPT_BIT(0, "get", &actions, "get value: name [value-regex]", ACTION_GET),
59 - OPT_BIT(0, "get-all", &actions, "get all values: key [value-regex]", ACTION_GET_ALL),
60 - OPT_BIT(0, "get-regexp", &actions, "get values for regexp: name-regex [value-regex]", ACTION_GET_REGEXP),
61 - OPT_BIT(0, "replace-all", &actions, "replace all matching variables: name value [value_regex]", ACTION_REPLACE_ALL),
62 - OPT_BIT(0, "add", &actions, "adds a new variable: name value", ACTION_ADD),
63 - OPT_BIT(0, "unset", &actions, "removes a variable: name [value-regex]", ACTION_UNSET),
64 - OPT_BIT(0, "unset-all", &actions, "removes all matches: name [value-regex]", ACTION_UNSET_ALL),
65 - OPT_BIT(0, "rename-section", &actions, "rename section: old-name new-name", ACTION_RENAME_SECTION),
66 - OPT_BIT(0, "remove-section", &actions, "remove a section: name", ACTION_REMOVE_SECTION),
67 - OPT_BIT('l', "list", &actions, "list all", ACTION_LIST),
68 - OPT_BIT('e', "edit", &actions, "opens an editor", ACTION_EDIT),
69 - OPT_STRING(0, "get-color", &get_color_slot, "slot", "find the color configured: [default]"),
70 - OPT_STRING(0, "get-colorbool", &get_colorbool_slot, "slot", "find the color setting: [stdout-is-tty]"),
71 - OPT_GROUP("Type"),
72 - OPT_BIT(0, "bool", &types, "value is \"true\" or \"false\"", TYPE_BOOL),
73 - OPT_BIT(0, "int", &types, "value is decimal number", TYPE_INT),
74 - OPT_BIT(0, "bool-or-int", &types, "value is --bool or --int", TYPE_BOOL_OR_INT),
75 - OPT_BIT(0, "path", &types, "value is a path (file or directory name)", TYPE_PATH),
76 - OPT_GROUP("Other"),
77 - OPT_BOOLEAN('z', "null", &end_null, "terminate values with NUL byte"),
78 - OPT_BOOL(0, "includes", &respect_includes, "respect include directives on lookup"),
52 + OPT_GROUP(N_("Config file location")),
53 + OPT_BOOLEAN(0, "global", &use_global_config, N_("use global config file")),
54 + OPT_BOOLEAN(0, "system", &use_system_config, N_("use system config file")),
55 + OPT_BOOLEAN(0, "local", &use_local_config, N_("use repository config file")),
56 + OPT_STRING('f', "file", &given_config_file, N_("file"), N_("use given config file")),
57 + OPT_GROUP(N_("Action")),
58 + OPT_BIT(0, "get", &actions, N_("get value: name [value-regex]"), ACTION_GET),
59 + OPT_BIT(0, "get-all", &actions, N_("get all values: key [value-regex]"), ACTION_GET_ALL),
60 + OPT_BIT(0, "get-regexp", &actions, N_("get values for regexp: name-regex [value-regex]"), ACTION_GET_REGEXP),
61 + OPT_BIT(0, "replace-all", &actions, N_("replace all matching variables: name value [value_regex]"), ACTION_REPLACE_ALL),
62 + OPT_BIT(0, "add", &actions, N_("adds a new variable: name value"), ACTION_ADD),
63 + OPT_BIT(0, "unset", &actions, N_("removes a variable: name [value-regex]"), ACTION_UNSET),
64 + OPT_BIT(0, "unset-all", &actions, N_("removes all matches: name [value-regex]"), ACTION_UNSET_ALL),
65 + OPT_BIT(0, "rename-section", &actions, N_("rename section: old-name new-name"), ACTION_RENAME_SECTION),
66 + OPT_BIT(0, "remove-section", &actions, N_("remove a section: name"), ACTION_REMOVE_SECTION),
67 + OPT_BIT('l', "list", &actions, N_("list all"), ACTION_LIST),
68 + OPT_BIT('e', "edit", &actions, N_("opens an editor"), ACTION_EDIT),
69 + OPT_STRING(0, "get-color", &get_color_slot, N_("slot"), N_("find the color configured: [default]")),
70 + OPT_STRING(0, "get-colorbool", &get_colorbool_slot, N_("slot"), N_("find the color setting: [stdout-is-tty]")),
71 + OPT_GROUP(N_("Type")),
72 + OPT_BIT(0, "bool", &types, N_("value is \"true\" or \"false\""), TYPE_BOOL),
73 + OPT_BIT(0, "int", &types, N_("value is decimal number"), TYPE_INT),
74 + OPT_BIT(0, "bool-or-int", &types, N_("value is --bool or --int"), TYPE_BOOL_OR_INT),
75 + OPT_BIT(0, "path", &types, N_("value is a path (file or directory name)"), TYPE_PATH),
76 + OPT_GROUP(N_("Other")),
77 + OPT_BOOLEAN('z', "null", &end_null, N_("terminate values with NUL byte")),
78 + OPT_BOOL(0, "includes", &respect_includes, N_("respect include directives on lookup")),
79 OPT_END(),
80 };
81