diff mbox

[PING] config/mep/mep.c: don't translate syntax description.

Message ID 20110506130032.GB13234@paradies.suse.de
State New
Headers show

Commit Message

Philipp Thomas May 6, 2011, 1 p.m. UTC
* Philipp Thomas (pth@suse.de) [20110504 14:17]:

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 untanslatable.
I also reworked the patch so that the lines are shorter and I also removed
the blanks before the typedef.
 
OK to check in?


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

Comments

DJ Delorie May 6, 2011, 8:15 p.m. UTC | #1
> OK to check in?

Ok with me.  Thanks!

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

Patch

Index: gcc/config/mep/mep.c
===================================================================
--- gcc/config/mep/mep.c	(Revision 173334)
+++ gcc/config/mep/mep.c	(Arbeitskopie)
@@ -4122,16 +4122,18 @@ 
       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;
  	}
     }