diff --git a/app/views/error_templates/_form.html.slim b/app/views/error_templates/_form.html.slim index f9363155..d9716ce3 100644 --- a/app/views/error_templates/_form.html.slim +++ b/app/views/error_templates/_form.html.slim @@ -16,4 +16,5 @@ .form-group = f.label(:hint) = f.text_field(:hint, class: 'form-control') + .help-block == t('error_templates.hints.hint_templates') .actions = render('shared/submit_button', f: f, object: @error_template) diff --git a/config/locales/de.yml b/config/locales/de.yml index ce03d90f..4eac60b8 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -666,6 +666,7 @@ de: error_templates: hints: signature: "Ein regulärer Ausdruck in Ruby-Syntax und ohne führende und schließende \"/\"" + hint_templates: 'Attributnamen in {{doppelten geschweiften Klammern}} werden zur Laufzeit durch die jeweiligen Attributwerte ersetzt. Beispiel: "Der Fehler ist in Zeile {{Line}}." --(StructuredError: {Line: 4})--> "Der Fehler ist in Zeile 4."' attributes: "Attribute" add_attribute: "Attribut hinzufügen" comments: diff --git a/config/locales/en.yml b/config/locales/en.yml index be92de5b..999a644c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -666,6 +666,7 @@ en: error_templates: hints: signature: "A regular expression in Ruby syntax without leading and trailing \"/\"" + hint_templates: 'Attribute names in {{double curly braces}} are replaced by the corresponding attribute value at runtime, e.g. "The error occurs in line {{Line}}." --(StructuredError: {Line: 4})--> "The error occurs in line 4."' attributes: "Attributes" add_attribute: "Add attribute" comments: