From 3f58b66d6b8b01328ca4b08f9da6910adbfad3ec Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 30 Apr 2019 10:33:29 +0200 Subject: [PATCH] Wrap a string with _ for translation (PR translation/90274). 2019-04-30 Martin Liska PR translation/90274 * opts.c (print_filtered_help): Wrap string in _(...). From-SVN: r270675 --- gcc/ChangeLog | 5 +++++ gcc/opts.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99c54020f40..2604ffa9d6f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-04-30 Martin Liska + + PR translation/90274 + * opts.c (print_filtered_help): Wrap string in _(...). + 2019-04-30 Bin Cheng PR tree-optimization/90240 diff --git a/gcc/opts.c b/gcc/opts.c index 02f6b4656e1..6d6ff19de2d 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -1578,7 +1578,8 @@ print_filtered_help (unsigned int include_flags, for (unsigned i = 0; i < help_tuples.length (); i++) { const struct cl_option *option = cl_options + help_tuples[i].m_code; - printf (" Known valid arguments for %s option:\n ", option->opt_text); + printf (_(" Known valid arguments for %s option:\n "), + option->opt_text); for (unsigned j = 0; j < help_tuples[i].m_values.length (); j++) printf (" %s", help_tuples[i].m_values[j]); printf ("\n\n"); -- 2.30.2