Patchwork config/mep/mep.c: don't translate syntax description.

login
register
mail settings
Submitter Philipp Thomas
Date May 4, 2011, 12:17 p.m.
Message ID <20110504121729.GF13578@paradies.suse.de>
Download mbox | patch
Permalink /patch/94026/
State New
Headers show

Comments

Philipp Thomas - May 4, 2011, 12:17 p.m.
While checking the current german tanslations I noticed that
mep_validate_vliw passes the syntax description directly to inform and thus
they appear in the message catalogue which is IMO bogus. This patch makes
the syntax descriptions untanslkatable.

OK to check in?


2011-05-04  Philipp Thomas  <pth@suse.de>
	* config/mep/mep.c (mep_validate_vliw): Syntax description
	should not be translated.

Patch

Index: config/mep/mep.c
===================================================================
--- config/mep/mep.c	(Revision 173334)
+++ config/mep/mep.c	(Arbeitskopie)
@@ -4122,16 +4122,16 @@ 
       if (TREE_CODE (*node) == POINTER_TYPE
  	  && !gave_pointer_note)
  	{
- 	  inform (input_location, "to describe a pointer to a VLIW function, use syntax like this:");
- 	  inform (input_location, "  typedef int (__vliw *vfuncptr) ();");
+ 	  inform (input_location, "to describe a pointer to a VLIW function, use syntax like this: %s",
+ 	          "  typedef int (__vliw *vfuncptr) ();");
  	  gave_pointer_note = 1;
  	}
  
       if (TREE_CODE (*node) == ARRAY_TYPE
  	  && !gave_array_note)
  	{
- 	  inform (input_location, "to describe an array of VLIW function pointers, use syntax like this:");
- 	  inform (input_location, "  typedef int (__vliw *vfuncptr[]) ();");
+ 	  inform (input_location, "to describe an array of VLIW function pointers, use syntax like this: %s",
+ 	          "  typedef int (__vliw *vfuncptr[]) ();");
  	  gave_array_note = 1;
  	}
     }