From nobody Thu Apr 25 12:43:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1678717810; cv=none; d=zohomail.com; s=zohoarc; b=O01ZZpCFdQM4hGwq/C9zPZHnLar4x+/cuA/HIJr3GmstFfWXoDjmjIJF+5kc8lDBTVt0bMtvrwFkcPtk/2vsmieBLrh5HO1TTUyl7rqrmsTU2gZyaNp9X08ngfVFIizcz6+JbgmlC5x0F26lzqBIG7W+8ZUdWUpPTuzc1t7s1kY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678717810; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=y35e1yBdf8Y//iYgKHCOID+yEQzQNFFDMzA0fLtUVWM=; b=HLsOToEtCSOkgk6aOTp0kyllFAVvSNC0p6RIZUTjjOSwyXtpOFDOQwENK/ATVRQN2J5PgCgHnDYSvxR/ACvozVBROCGakeMKaY4yhWFvtFIPykSaZMOKUnqVUI+oRJ8vsAjXl0451JODZkz28ACLXv6aQM+KPRYnKV6PKoor4h0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1678717810842183.5308434477854; Mon, 13 Mar 2023 07:30:10 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-eaRUuijZMnm4IV_-mCmuow-1; Mon, 13 Mar 2023 10:29:49 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 347ED1C189AE; Mon, 13 Mar 2023 14:29:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id A6CE8202701E; Mon, 13 Mar 2023 14:29:46 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2FEB0194658F; Mon, 13 Mar 2023 14:29:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id CE6E51946588 for ; Mon, 13 Mar 2023 14:29:44 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 9DC4640C83A9; Mon, 13 Mar 2023 14:29:44 +0000 (UTC) Received: from fedora.. (unknown [10.43.2.118]) by smtp.corp.redhat.com (Postfix) with ESMTP id 453BA40C20FA for ; Mon, 13 Mar 2023 14:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678717809; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=y35e1yBdf8Y//iYgKHCOID+yEQzQNFFDMzA0fLtUVWM=; b=PrztqW9wGNgeZExer3kbLY6gb8fHdavOLzRH1/GfUlMmjJjKoWFqWd416ZZewdusx7GfZW nTQqAFB7j+rusCVFqB8pb/Jq7A5KkzUBSLVx63qM1OOsv7Cxq9S++FB2dPIQXXlmh7Q8fS WpEslssE096674cENCKgHWOVdcdXoOs= X-MC-Unique: eaRUuijZMnm4IV_-mCmuow-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] util: virXMLValidatorInit: improve translatable errors Date: Mon, 13 Mar 2023 15:29:42 +0100 Message-Id: <65a3487095b1d2d102e5cea30fef091e042f41c8.1678717781.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1678717812620100001 In some translations, the RNG initials were mistranslated as a random number generator. Spell it out as RelaxNG to make it clearer. Include the word 'schema' and quotes around the filename. Signed-off-by: J=C3=A1n Tomko Reviewed-by: Peter Krempa --- src/util/virxml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/virxml.c b/src/util/virxml.c index af4be4e443..c0789c062c 100644 --- a/src/util/virxml.c +++ b/src/util/virxml.c @@ -1563,7 +1563,7 @@ virXMLValidatorInit(const char *schemafile) if (!(validator->rngParser =3D xmlRelaxNGNewParserCtxt(validator->schemafile))) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unable to create RNG parser for %s"), + _("Unable to create RelaxNG parser for schema '%s'"= ), validator->schemafile); return NULL; } @@ -1575,7 +1575,7 @@ virXMLValidatorInit(const char *schemafile) =20 if (!(validator->rng =3D xmlRelaxNGParse(validator->rngParser))) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unable to parse RNG %s: %s"), + _("Unable to parse RelaxNG schema '%s': %s"), validator->schemafile, virBufferCurrentContent(&validator->buf)); return NULL; @@ -1583,7 +1583,7 @@ virXMLValidatorInit(const char *schemafile) =20 if (!(validator->rngValid =3D xmlRelaxNGNewValidCtxt(validator->rng)))= { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unable to create RNG validation context %s"), + _("Unable to create RelaxNG validation context for = schema '%s'"), validator->schemafile); return NULL; } --=20 2.39.2