From 2991af67f411e72a364a32127c4341661436e58a Mon Sep 17 00:00:00 2001 From: gaba Date: Tue, 23 May 2017 14:03:34 -0400 Subject: [PATCH] Adds more translation strings. --- .../src/components/EditableCommentContent.js | 12 ++++++------ client/coral-embed-stream/src/components/Embed.js | 2 +- client/coral-framework/locales/en.yml | 11 +++++++++++ client/coral-framework/locales/es.yml | 11 +++++++++++ client/coral-plugin-history/Comment.js | 4 +++- 5 files changed, 32 insertions(+), 8 deletions(-) diff --git a/client/coral-embed-stream/src/components/EditableCommentContent.js b/client/coral-embed-stream/src/components/EditableCommentContent.js index ec6718217..1af4a9fa7 100644 --- a/client/coral-embed-stream/src/components/EditableCommentContent.js +++ b/client/coral-embed-stream/src/components/EditableCommentContent.js @@ -85,7 +85,7 @@ export class EditableCommentContent extends React.Component { } else if (error.networkError) { addNotification('error', t('error.networkError')); } else { - addNotification('error', t('editComment.unexpectedError')); + addNotification('error', t('edit_comment.unexpectedError')); throw error; } } @@ -114,9 +114,9 @@ export class EditableCommentContent extends React.Component { return (comment.body !== originalBody) && !editWindowExpired; }} saveComment={this.editComment} - bodyLabel={t('editComment.bodyInputLabel')} + bodyLabel={t('edit_comment.bodyInputLabel')} bodyPlaceholder="" - submitText={{t('editComment.saveButton')}} + submitText={{t('edit_comment.save_button')}} saveButtonCStyle="green" cancelButtonClicked={this.props.stopEditing} buttonClass={styles.button} @@ -126,15 +126,15 @@ export class EditableCommentContent extends React.Component { { editWindowExpired ? - {t('editComment.editWindowExpired')} + {t('edit_comment.editWindowExpired')} { typeof this.props.stopEditing === 'function' - ?  {t('editComment.editWindowExpiredClose')} + ?  {t('edit_comment.editWindowExpiredClose')} : null } : - {t('editComment.editWindowTimerPrefix')} + {t('edit_comment.editWindowTimerPrefix')} (remainingMs <= 10 * 1000) ? styles.editWindowAlmostOver : '' } diff --git a/client/coral-embed-stream/src/components/Embed.js b/client/coral-embed-stream/src/components/Embed.js index c429f3a4b..7030caf74 100644 --- a/client/coral-embed-stream/src/components/Embed.js +++ b/client/coral-embed-stream/src/components/Embed.js @@ -46,7 +46,7 @@ export default class Embed extends React.Component { {t('framework.my_profile')} - Configure Stream + {t('framework.configure_stream')} { commentId && diff --git a/client/coral-framework/locales/en.yml b/client/coral-framework/locales/en.yml index fe3d43ead..1f9066786 100644 --- a/client/coral-framework/locales/en.yml +++ b/client/coral-framework/locales/en.yml @@ -144,6 +144,15 @@ en: no_flags: "There have been no flags in the last 5 minutes! Hooray!" no_likes: "There have been no likes in the last 5 minutes. All quiet." done: Done + editComment: + bodyInputLabel: "Edit this comment" + save_button: "Save changes" + editWindowExpired: "You can no longer edit this comment. The time window to do so has expired. Why not post another one?" + editWindowExpiredClose: "Close" + editWindowTimerPrefix: "Edit Window: " + second: "second" + secondsPlural: "seconds" + unexpectedError: "Unexpected error while saving changes. Sorry!" embedlink: copy: "Copy to Clipboard" error: @@ -177,6 +186,7 @@ en: comment: comment comment_is_ignored: "This comment is hidden because you ignored this user." comments: comments + configure_stream: "Configure Stream" content_not_available: "This content is not available" edit_name: button: Submit @@ -337,6 +347,7 @@ en: user_impersonating: "This user is impersonating" user_no_comment: "You've never left a comment. Join the conversation!" username_offensive: "This username is offensive" + view_conversation: "View Conversation" install: INITIAL: DESCRIPTION: "Let's set up your Talk community in just a few short steps." diff --git a/client/coral-framework/locales/es.yml b/client/coral-framework/locales/es.yml index 4b668d104..701494f2c 100644 --- a/client/coral-framework/locales/es.yml +++ b/client/coral-framework/locales/es.yml @@ -144,6 +144,15 @@ es: no_flags: "No ha habido ningún reporte en los últimos 5 minutos! Bravo!" no_likes: "No ha habido ningún 'me gusta' en los últimos 5 minutos. Todo tranquilo." done: hecho + edit_comment: + bodyInputLabel: "Editar este comentario" + saveButton: "Guardar cambios" + editWindowExpired: "Ya no puedes editar este comentario. La ventana de tiempo para hacerlo ha caducado. ¿Por qué no publicar otro?" + editWindowExpiredClose: "Cerca" + editWindowTimerPrefix: "Ventana de edición: " + second: "segundo" + secondsPlural: "segundos" + unexpectedError: "Unexpected error while saving changes. Sorry!" embedlink: copy: "Copiar al portapapeles" error: @@ -177,6 +186,7 @@ es: comment: commentario comment_is_ignored: "Este comentario está escondido porque has ignorado al usuario." comments: commentarios + configure_stream: "Configurar Hilo de Comentarios" content_not_available: "El contenido no se encuentra disponible" edit_name: button: Enviar @@ -337,6 +347,7 @@ es: user_impersonating: "Este usuario suplanta a alguien" user_no_comment: "No has dejado aún ningún comentario. ¡Únete a la conversación!" username_offensive: "Este nombre de usuario es ofensivo" + view_conversation: "Ver Conversación" install: INITIAL: DESCRIPTION: "Creemos tu comunidad Talk en unos pocos pasos." diff --git a/client/coral-plugin-history/Comment.js b/client/coral-plugin-history/Comment.js index b98ed88c3..cb188e53e 100644 --- a/client/coral-plugin-history/Comment.js +++ b/client/coral-plugin-history/Comment.js @@ -4,6 +4,8 @@ import styles from './Comment.css'; import PubDate from '../coral-plugin-pubdate/PubDate'; import Content from '../coral-plugin-commentcontent/CommentContent'; +import t from 'coral-framework/services/i18n'; + const Comment = (props) => { return (
@@ -25,7 +27,7 @@ const Comment = (props) => {