From fa56984dc3317e7f3d7946b7f7231d4ea4d36080 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 31 Mar 2025 19:26:01 -0600 Subject: [PATCH] use lang string Signed-off-by: Andy Miller --- system/src/Grav/Common/Data/BlueprintSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Data/BlueprintSchema.php b/system/src/Grav/Common/Data/BlueprintSchema.php index 13786b29f..8db66540e 100644 --- a/system/src/Grav/Common/Data/BlueprintSchema.php +++ b/system/src/Grav/Common/Data/BlueprintSchema.php @@ -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); } }