From patchwork Mon Apr 29 11:06:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 1092592 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-499828-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="X57A4Mle"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44t20x1nMVz9s70 for ; Mon, 29 Apr 2019 21:06:57 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=FL+PN/N+KyxaFhL4pJToPn0/vsc9/8F2HDnMfxv+QEYMUA3ssbq8E KgvmC3GRzd1oLkyujOULzLcpDlLMOtejaQMgTBT/p2edYsUjWEzHpm3wa0a4tEn9 7exd9Ly3Ucm4Qq6zDNUO3KArXwvKAuBW0OuwZ1r7saghaP4vyZ8Zo8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=TTgi+L21bW9ehZYuzC0so6QQTdc=; b=X57A4MlelFP6L5ApHabX tkOZHFWz2uWQMdwuSn7wJErLR29+cHVApgmsIjas3lHogm0fBsmvDO41WypKSN6u 5zBRtI/ulO6ZEp7Y5yrM8+5ORpHD/PB5IDh4Nz5DJUID3bYwrrV+4tNVN2fXBa5a Mw3/EI3rAikYlrk35EE0guc= Received: (qmail 13848 invoked by alias); 29 Apr 2019 11:06:50 -0000 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 Received: (qmail 13840 invoked by uid 89); 29 Apr 2019 11:06:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1033 X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Apr 2019 11:06:49 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1C392ACD1 for ; Mon, 29 Apr 2019 11:06:47 +0000 (UTC) From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] Wrap a string with _ for translation (PR translation/90274). To: gcc-patches@gcc.gnu.org Message-ID: <5afdde29-c103-60ba-6971-e68e5cb07bf0@suse.cz> Date: Mon, 29 Apr 2019 13:06:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 X-IsSubscribed: yes 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 PR translation/90274 * opts.c (print_filtered_help): Wrap string in _(...). --- gcc/opts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");