From 43d43bdcd6e742667bc3626657bafe45f76132a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Fri, 3 Sep 2021 13:47:22 +0100 Subject: [PATCH] Clean up translations for required questions --- temp.md | 0 www/form/inner.js | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 temp.md diff --git a/temp.md b/temp.md new file mode 100644 index 000000000..e69de29bb diff --git a/www/form/inner.js b/www/form/inner.js index c30bc99d1..fdbe2bc54 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -2932,10 +2932,14 @@ define([ return; } - Messages.form_required = "Required"; // XXX + // XXX + Messages.form_required_answer = "Answer: "; + Messages.form_required_on = "Required"; + Messages.form_required_off = "Optional"; + var requiredTag; if (block.opts && block.opts.required) { - requiredTag = h('span.cp-form-required-tag', Messages.form_required); + requiredTag = h('span.cp-form-required-tag', Messages.form_required_on); } var dragHandle; @@ -2954,9 +2958,6 @@ define([ Messages.form_preview = "Preview:"; // XXX var previewDiv = h('div.cp-form-preview', Messages.form_preview); - Messages.form_required_answer = "Answer: "; - Messages.form_required_on = "required"; - Messages.form_required_off = "optional"; // Required radio displayed only for types that have an "isEmpty" function var requiredDiv, conditionalDiv; if (APP.isEditor && !isStatic && data.isEmpty) {