Translate header for -fdbg-cnt-list.

Message ID 11040867-9f24-fc00-2950-ff09eff45257@suse.cz
State New
Headers show
Series
  • Translate header for -fdbg-cnt-list.
Related show

Commit Message

Martin Liška Nov. 27, 2019, 1:08 p.m.
Hi.

The patch is about translation of titles in -fdbg-cnt-list table.

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

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

2019-11-27  Martin Liska  <mliska@suse.cz>

	PR debug/46558
	* dbgcnt.c (dbg_cnt_list_all_counters): Mark table
	headers for translation.
---
  gcc/dbgcnt.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Joseph Myers Nov. 27, 2019, 5:49 p.m. | #1
On Wed, 27 Nov 2019, Martin Liška wrote:

> Hi.

> 

> The patch is about translation of titles in -fdbg-cnt-list table.

> 

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

> 

> Ready to be installed?


OK.

-- 
Joseph S. Myers
joseph@codesourcery.com
Jeff Law Dec. 7, 2019, 4:36 p.m. | #2
On Wed, 2019-11-27 at 14:08 +0100, Martin Liška wrote:
> Hi.

> 

> The patch is about translation of titles in -fdbg-cnt-list table.

> 

> Patch can bootstrap on x86_64-linux-gnu and survives regression

> tests.

> 

> Ready to be installed?

> Thanks,

> Martin

> 

> gcc/ChangeLog:

> 

> 2019-11-27  Martin Liska  <mliska@suse.cz>

> 

> 	PR debug/46558

> 	* dbgcnt.c (dbg_cnt_list_all_counters): Mark table

> 	headers for translation.

> ---

>   gcc/dbgcnt.c | 3 ++-

>   1 file changed, 2 insertions(+), 1 deletion(-)

> 

> 

OK
jeff

Patch

diff --git a/gcc/dbgcnt.c b/gcc/dbgcnt.c
index f58ef8fd00e..2b6b8801c32 100644
--- a/gcc/dbgcnt.c
+++ b/gcc/dbgcnt.c
@@ -25,6 +25,7 @@  See dbgcnt.def for usage information.  */
 #include "diagnostic-core.h"
 #include "dumpfile.h"
 #include "selftest.h"
+#include "intl.h"
 
 #include "dbgcnt.h"
 
@@ -222,7 +223,7 @@  void
 dbg_cnt_list_all_counters (void)
 {
   int i;
-  printf ("  %-30s %s\n", "counter name", "closed intervals");
+  printf ("  %-30s %s\n", G_("counter name"), G_("closed intervals"));
   printf ("-----------------------------------------------------------------\n");
   for (i = 0; i < debug_counter_number_of_counters; i++)
     {