use lang string

Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2025-03-31 19:26:01 -06:00
parent 90fd68d4a5
commit fa56984dc3

View File

@@ -224,7 +224,7 @@ class BlueprintSchema extends BlueprintSchemaBase implements ExportInterface
}
}
if (!$isValid) {
$messages[$rule['name']][] = $currentLabel.' field does not match '. $otherLabel;
$messages[$rule['name']][] = sprintf(Grav::instance()['language']->translate('PLUGIN_FORM.VALIDATION_MATCH'), $currentLabel, $otherLabel);
}
}