]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: virXMLValidatorInit: improve translatable errors
authorJán Tomko <jtomko@redhat.com>
Wed, 8 Mar 2023 13:00:18 +0000 (14:00 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 15 Mar 2023 16:12:46 +0000 (17:12 +0100)
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 <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virxml.c

index af4be4e4433801a7c218d33b3b4d81b4c6b26301..c0789c062cd1d28aef01c3d54156dd2f8e44ada6 100644 (file)
@@ -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;
     }