Spanish translation: IDEview / Toast Settings Saved (#1566)

* Translations for Share and AddCollection Overlays called from IDEView
* Translation in Project for settings saved.

Co-authored-by: Andrew Nicolaou <me@andrewnicolaou.co.uk>
This commit is contained in:
ov 2020-08-22 11:57:39 +01:00 committed by GitHub
parent 5af98ca765
commit e6ca173cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 12 deletions

View File

@ -457,15 +457,15 @@ class IDEView extends React.Component {
<Overlay
title={this.props.t('IDEView.SubmitFeedback')}
previousPath={this.props.ide.previousPath}
ariaLabel="submit-feedback"
ariaLabel={this.props.t('IDEView.SubmitFeedbackARIA')}
>
<Feedback previousPath={this.props.ide.previousPath} />
</Overlay>
)}
{this.props.location.pathname.match(/add-to-collection$/) && (
<Overlay
ariaLabel="add to collection"
title="Add to collection"
ariaLabel={this.props.t('IDEView.AddCollectionARIA')}
title={this.props.t('IDEView.AddCollectionTitle')}
previousPath={this.props.ide.previousPath}
actions={<CollectionSearchbar />}
isFixedHeight
@ -479,8 +479,8 @@ class IDEView extends React.Component {
)}
{this.props.ide.shareModalVisible && (
<Overlay
title="Share"
ariaLabel="share"
title={this.props.t('IDEView.ShareTitle')}
ariaLabel={this.props.t('IDEView.ShareARIA')}
closeOverlay={this.props.closeShareModal}
>
<ShareModal
@ -501,8 +501,8 @@ class IDEView extends React.Component {
)}
{this.props.ide.errorType && (
<Overlay
title="Error"
ariaLabel={this.props.t('Common.Error')}
title={this.props.t('Common.Error')}
ariaLabel={this.props.t('Common.ErrorARIA')}
closeOverlay={this.props.hideErrorModal}
>
<ErrorModal

View File

@ -229,7 +229,7 @@ export function updateSettings(formValues) {
dispatch(updateSettingsSuccess(response.data));
browserHistory.push('/');
dispatch(showToast(5500));
dispatch(setToastText('Settings saved.'));
dispatch(setToastText('Toast.SettingsSaved'));
})
.catch((error) => {
const { response } = error;

View File

@ -88,7 +88,8 @@
"SketchSaved": "Sketch saved.",
"SketchFailedSave": "Failed to save sketch.",
"AutosaveEnabled": "Autosave enabled.",
"LangChange": "Language changed"
"LangChange": "Language changed",
"SettingsSaved": "Settings saved."
},
"Toolbar": {
"Preview": "Preview",
@ -198,12 +199,18 @@
},
"Common": {
"Error": "Error",
"ErrorARIA": "Error",
"Save": "Save",
"p5logoARIA": "p5.js Logo",
"DeleteConfirmation": "Are you sure you want to delete {{name}}?"
},
"IDEView": {
"SubmitFeedback": "Submit Feedback"
"SubmitFeedback": "Submit Feedback",
"SubmitFeedbackARIA": "submit-feedback",
"AddCollectionTitle": "Add to collection",
"AddCollectionARIA":"add to collection",
"ShareTitle": "Share",
"ShareARIA":"share"
},
"NewFileModal": {
"Title": "Create File",

View File

@ -88,7 +88,8 @@
"SketchSaved": "Bosquejo guardado.",
"SketchFailedSave": "Fallo al guardar el bosquejo.",
"AutosaveEnabled": "Grabado automático activado.",
"LangChange": "Lenguaje cambiado"
"LangChange": "Lenguaje cambiado",
"SettingsSaved": "Configuración guardada."
},
"Toolbar": {
"Preview": "Vista previa",
@ -198,12 +199,18 @@
},
"Common": {
"Error": "Error",
"ErrorARIA": "Error",
"Save": "Guardar",
"p5logoARIA": "Logo p5.js ",
"DeleteConfirmation": "¿Estás seguro que quieres borrar {{name}}?"
},
"IDEView": {
"SubmitFeedback": "Enviar retroalimentación"
"SubmitFeedback": "Enviar retroalimentación",
"SubmitFeedbackARIA": "Enviar retroalimentación",
"AddCollectionTitle": "Agregar a colección",
"AddCollectionARIA":"Agregar a colección",
"ShareTitle": "Compartir",
"ShareARIA":"compartir"
},
"NewFileModal": {
"Title": "Crear Archivo",