From patchwork Wed May 4 12:17:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Thomas X-Patchwork-Id: 94026 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id E1387100847 for ; Wed, 4 May 2011 22:17:59 +1000 (EST) Received: (qmail 17915 invoked by alias); 4 May 2011 12:17:55 -0000 Received: (qmail 17898 invoked by uid 22791); 4 May 2011 12:17:53 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 May 2011 12:17:31 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id B08D279727 for ; Wed, 4 May 2011 14:17:30 +0200 (CEST) Date: Wed, 4 May 2011 14:17:30 +0200 From: Philipp Thomas To: gcc-patches@gcc.gnu.org Subject: config/mep/mep.c: don't translate syntax description. Message-ID: <20110504121729.GF13578@paradies.suse.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * config/mep/mep.c (mep_validate_vliw): Syntax description should not be translated. 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; } }