From c92e5bbdadd13c098950b274b7dc233ecc350149 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Tomko?= Date: Wed, 8 Mar 2023 14:00:18 +0100 Subject: [PATCH] util: virXMLValidatorInit: improve translatable errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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án 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 = 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) if (!(validator->rng = 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) if (!(validator->rngValid = 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; } -- 2.47.2