From: Nguyễn Thái Ngọc Duy Date: Fri, 24 Aug 2012 05:43:06 GMT Subject: [PATCH 6/6] test-parse-options: mark parseopt help strings for pseudotranslation Message-ID: <1345786986-10826-7-git-send-email-pclouds@gmail.com> In-Reply-To: <1345786986-10826-1-git-send-email-pclouds@gmail.com> This reduces the number of false positives in untranslated.log when we check for unmarked strings. Signed-off-by: Nguyễn Thái Ngọc Duy --- test-parse-options.c | 62 ++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/test-parse-options.c b/test-parse-options.c index 4a94327..09ddf74 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -33,50 +33,50 @@ int main(int argc, const char **argv) { const char *prefix = "prefix/"; const char *usage[] = { - "test-parse-options ", + N_("test-parse-options "), NULL }; struct option options[] = { - OPT_BOOL(0, "yes", &boolean, "get a boolean"), - OPT_BOOL('D', "no-doubt", &boolean, "begins with 'no-'"), + OPT_BOOL(0, "yes", &boolean, N_("get a boolean")), + OPT_BOOL('D', "no-doubt", &boolean, N_("begins with 'no-'")), { OPTION_SET_INT, 'B', "no-fear", &boolean, NULL, - "be brave", PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 }, - OPT_COUNTUP('b', "boolean", &boolean, "increment by one"), + N_("be brave"), PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 }, + OPT_COUNTUP('b', "boolean", &boolean, N_("increment by one")), OPT_BIT('4', "or4", &boolean, - "bitwise-or boolean with ...0100", 4), - OPT_NEGBIT(0, "neg-or4", &boolean, "same as --no-or4", 4), + N_("bitwise-or boolean with ...0100"), 4), + OPT_NEGBIT(0, "neg-or4", &boolean, N_("same as --no-or4"), 4), OPT_GROUP(""), - OPT_INTEGER('i', "integer", &integer, "get a integer"), - OPT_INTEGER('j', NULL, &integer, "get a integer, too"), - OPT_SET_INT(0, "set23", &integer, "set integer to 23", 23), - OPT_DATE('t', NULL, ×tamp, "get timestamp of