Moving banned wordlist text to translations.

This commit is contained in:
David Jay
2016-12-01 21:49:55 -05:00
parent b5b0cd9b12
commit 0e75319c04
2 changed files with 10 additions and 7 deletions
@@ -1,15 +1,14 @@
import React from 'react';
// import I18n from 'coral-framework/modules/i18n/i18n';
// import translations from '../../translations.json';
import I18n from 'coral-framework/modules/i18n/i18n';
import translations from '../../translations.json';
import styles from './Configure.css';
import {
Card
} from 'react-mdl';
const Wordlist = ({wordlist, onChangeWordlist}) => <Card id={styles.bannedWordlist} shadow={2}>
<p className={styles.bannedWordHeader}>Write the bannned words list</p>
<p className={styles.bannedWordText}>Comments which contain these words or phrases, not seperated by commas and not
case sensitive, will be automatically removed from the comment stream.</p>
<p className={styles.bannedWordHeader}>{lang.t('configure.banned-word-header')}</p>
<p className={styles.bannedWordText}>{lang.t('configure.banned-word-text')}</p>
<textarea
rows={5}
type='text'
@@ -20,4 +19,4 @@ const Wordlist = ({wordlist, onChangeWordlist}) => <Card id={styles.bannedWordli
export default Wordlist;
// const lang = new I18n(translations);
const lang = new I18n(translations);
+5 -1
View File
@@ -37,6 +37,8 @@
"include-text": "Include your text here.",
"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 seperated by commas and not case sensitive, will be automatically removed from the comment stream.",
"wordlist": "Banned words list",
"save-changes": "Save Changes",
"copy-and-paste": "Copy and paste code below into your CMS to embed your comment box in your articles",
@@ -72,7 +74,9 @@
"include-text": "Incluir tu texto aqui.",
"comment-settings": "Configuración de Comentarios",
"embed-comment-stream": "Colocar Hilo de Comentarios",
"wordlist": "tracundeme",
"wordlist": "¡traduceme!",
"banned-word-header": "¡traduceme!",
"banned-word-text": "¡traduceme!",
"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",