From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 7510F3858295 for ; Sun, 7 Aug 2022 07:41:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7510F3858295 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 0EB1330008A; Sun, 7 Aug 2022 07:41:04 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Nick Clifton , Jan Beulich , Tristan Gingold Cc: binutils@sourceware.org Subject: [RESEND PATCH 1/1] Mach-O: i18n enablement on some error messages Date: Sun, 7 Aug 2022 16:40:42 +0900 Message-Id: In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2022 07:41:07 -0000 This commit now wraps two string literals with _() for i18n support enablement. They are used in the collect_16char_name function to form localized error messages that contain "%s name". gas/ChangeLog: * config/obj-macho.c (obj_mach_o_get_section_names): Wrap two string literals within with gettext macro. --- gas/config/obj-macho.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gas/config/obj-macho.c b/gas/config/obj-macho.c index f055aeadafb..119f2fd1356 100644 --- a/gas/config/obj-macho.c +++ b/gas/config/obj-macho.c @@ -141,7 +141,7 @@ obj_mach_o_get_section_names (char *seg, char *sec, /* Zero-length segment and section names are allowed. */ /* Parse segment name. */ memset (seg, 0, segl); - if (collect_16char_name (seg, "segment", 1)) + if (collect_16char_name (seg, _("segment"), 1)) { ignore_rest_of_line (); return 0; @@ -150,7 +150,7 @@ obj_mach_o_get_section_names (char *seg, char *sec, /* Parse section name, which can be empty. */ memset (sec, 0, secl); - collect_16char_name (sec, "section", 0); + collect_16char_name (sec, _("section"), 0); return 1; } -- 2.34.1