From eeec11e52b002e770b7537b409f550c1d7c3432f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Fri, 22 Mar 2024 22:46:11 -0700 Subject: [PATCH] Distinguish tip and message on missing start date validator rule --- data/core.yaml | 6 +++--- modules/validations/missing_start_date.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index f228cce1f5..edf509b1b5 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -1896,9 +1896,9 @@ en: reference: "Multipolygon members must have an inner or outer role." missing_start_date: title: Missing Start Dates - feature: - message: "Find features that are missing a start date" - reference: "Every feature should have a start date to prevent it from appearing since the beginning of time. If you are not sure about the start date, you can add an approximate date or a date range using the EDTF date field." + tip: "Find features that are missing a start date" + message: "{feature} has no start date" + reference: "Every feature should have a start date to prevent it from appearing since the beginning of time. If you are unsure of the start date, you can add an approximate date or a date range using the EDTF date field." missing_tag: title: Missing Tags tip: "Find features that are missing descriptive tags" diff --git a/modules/validations/missing_start_date.js b/modules/validations/missing_start_date.js index 2c6fe70ee8..31f3114c49 100644 --- a/modules/validations/missing_start_date.js +++ b/modules/validations/missing_start_date.js @@ -44,7 +44,7 @@ export function validationMissingStartDate(context) { severity: 'warning', message: (context) => { const entity = context.hasEntity(entityID); - return entity ? t.append('issues.missing_start_date.feature.message', { + return entity ? t.append('issues.missing_start_date.message', { feature: utilDisplayLabel(entity, context.graph()) }) : ''; },