From 18d4c58a48af39febe57021a4daf2c07c7600061 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Wed, 21 Dec 2016 11:12:09 -0700 Subject: [PATCH] allow pasting comma-separated lists --- .../coral-admin/src/containers/Configure/Wordlist.js | 4 ++++ client/coral-admin/src/translations.json | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/client/coral-admin/src/containers/Configure/Wordlist.js b/client/coral-admin/src/containers/Configure/Wordlist.js index 01bbf5203..595b5ea42 100644 --- a/client/coral-admin/src/containers/Configure/Wordlist.js +++ b/client/coral-admin/src/containers/Configure/Wordlist.js @@ -16,6 +16,8 @@ const Wordlist = ({suspectWords, bannedWords, onChangeWordlist}) => ( data.split(',').map(d => d.trim())} onChange={tags => onChangeWordlist('banned', tags)} />

{lang.t('configure.suspect-words-title')}

@@ -25,6 +27,8 @@ const Wordlist = ({suspectWords, bannedWords, onChangeWordlist}) => ( data.split(',').map(d => d.trim())} onChange={tags => onChangeWordlist('suspect', tags)} /> diff --git a/client/coral-admin/src/translations.json b/client/coral-admin/src/translations.json index eee0bc443..d92fc6fc0 100644 --- a/client/coral-admin/src/translations.json +++ b/client/coral-admin/src/translations.json @@ -49,9 +49,9 @@ "comment-settings": "Comment Settings", "embed-comment-stream": "Embed Comment Stream", "banned-word-header": "Write the bannned words list", - "banned-word-text": "Comments which contain these words or phrases (not case-sensitive) will be automatically removed from the comment stream.", "suspect-word-header": "Write the suspect words list", - "suspect-word-text": "Comments which contain these words or phrases (not case-sensitive) will be highlighted in the comment stream", + "banned-word-text": "Comments which contain these words or phrases (not case-sensitive) will be automatically removed from the comment stream. Type a word and press Enter or Tab to add. Optionally paste a comma-separated list.", + "suspect-word-text": "Comments which contain these words or phrases (not case-sensitive) will be highlighted in the comment stream. Type a word and press Enter or Tab to add. Optionally paste a comma-separated list.", "wordlist": "Banned & Suspect Words", "banned-words-title": "Banned words list", "suspect-words-title": "Suspect words list", @@ -119,11 +119,11 @@ "embed-comment-stream": "Colocar Hilo de Comentarios", "wordlist": "Palabras Suspendidas y Suspechosas", "banned-word-header": "Escribir las palabras no permitidas", + "suspect-word-header": "Write the suspect words list", "banned-word-text": "Comentarios que contengan estas palabras o frases, no separadas por comas y en mayusculas o minusuculas, serán automaticamente separadas de los comentarios publicados.", - "suspect-word-header": "", - "suspect-word-text": "", - "banned-words-title": "", - "suspect-words-title": "", + "suspect-word-text": "Comments which contain these words or phrases (not case-sensitive) will be highlighted in the comment stream. Type a word and press Enter or Tab to add. Optionally paste a comma-separated list.", + "banned-words-title": "Banned words list", + "suspect-words-title": "Suspect words list", "save-changes": "Guardar Cambios", "copy-and-paste": "Copiar y pegar el código de más abajo en tu CMS para colocar la caja de comentarios en tus articulos", "moderate": "Moderar",