diff mbox series

Wrap a string with _ for translation (PR translation/90274).

Message ID 5afdde29-c103-60ba-6971-e68e5cb07bf0@suse.cz
State New
Headers show
Series Wrap a string with _ for translation (PR translation/90274). | expand

Commit Message

Martin Liška April 29, 2019, 11:06 a.m. UTC
Hi.

Simple patch to address a missing translation of a string.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

2019-04-29  Martin Liska  <mliska@suse.cz>

	PR translation/90274
	* opts.c (print_filtered_help): Wrap string in _(...).
---
 gcc/opts.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jeff Law April 29, 2019, 7:24 p.m. UTC | #1
On 4/29/19 5:06 AM, Martin Liška wrote:
> Hi.
> 
> Simple patch to address a missing translation of a string.
> 
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
> 
> Ready to be installed?
> Thanks,
> Martin
> 
> gcc/ChangeLog:
> 
> 2019-04-29  Martin Liska  <mliska@suse.cz>
> 
> 	PR translation/90274
> 	* opts.c (print_filtered_help): Wrap string in _(...).
> ---
>  gcc/opts.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> 
OK for trunk and branch.  Your call if/when to backport to the branch.

jeff
diff mbox series

Patch

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");