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:
parent
5af98ca765
commit
e6ca173cf0
4 changed files with 26 additions and 12 deletions
|
@ -457,15 +457,15 @@ class IDEView extends React.Component {
|
||||||
<Overlay
|
<Overlay
|
||||||
title={this.props.t('IDEView.SubmitFeedback')}
|
title={this.props.t('IDEView.SubmitFeedback')}
|
||||||
previousPath={this.props.ide.previousPath}
|
previousPath={this.props.ide.previousPath}
|
||||||
ariaLabel="submit-feedback"
|
ariaLabel={this.props.t('IDEView.SubmitFeedbackARIA')}
|
||||||
>
|
>
|
||||||
<Feedback previousPath={this.props.ide.previousPath} />
|
<Feedback previousPath={this.props.ide.previousPath} />
|
||||||
</Overlay>
|
</Overlay>
|
||||||
)}
|
)}
|
||||||
{this.props.location.pathname.match(/add-to-collection$/) && (
|
{this.props.location.pathname.match(/add-to-collection$/) && (
|
||||||
<Overlay
|
<Overlay
|
||||||
ariaLabel="add to collection"
|
ariaLabel={this.props.t('IDEView.AddCollectionARIA')}
|
||||||
title="Add to collection"
|
title={this.props.t('IDEView.AddCollectionTitle')}
|
||||||
previousPath={this.props.ide.previousPath}
|
previousPath={this.props.ide.previousPath}
|
||||||
actions={<CollectionSearchbar />}
|
actions={<CollectionSearchbar />}
|
||||||
isFixedHeight
|
isFixedHeight
|
||||||
|
@ -479,8 +479,8 @@ class IDEView extends React.Component {
|
||||||
)}
|
)}
|
||||||
{this.props.ide.shareModalVisible && (
|
{this.props.ide.shareModalVisible && (
|
||||||
<Overlay
|
<Overlay
|
||||||
title="Share"
|
title={this.props.t('IDEView.ShareTitle')}
|
||||||
ariaLabel="share"
|
ariaLabel={this.props.t('IDEView.ShareARIA')}
|
||||||
closeOverlay={this.props.closeShareModal}
|
closeOverlay={this.props.closeShareModal}
|
||||||
>
|
>
|
||||||
<ShareModal
|
<ShareModal
|
||||||
|
@ -501,8 +501,8 @@ class IDEView extends React.Component {
|
||||||
)}
|
)}
|
||||||
{this.props.ide.errorType && (
|
{this.props.ide.errorType && (
|
||||||
<Overlay
|
<Overlay
|
||||||
title="Error"
|
title={this.props.t('Common.Error')}
|
||||||
ariaLabel={this.props.t('Common.Error')}
|
ariaLabel={this.props.t('Common.ErrorARIA')}
|
||||||
closeOverlay={this.props.hideErrorModal}
|
closeOverlay={this.props.hideErrorModal}
|
||||||
>
|
>
|
||||||
<ErrorModal
|
<ErrorModal
|
||||||
|
|
|
@ -229,7 +229,7 @@ export function updateSettings(formValues) {
|
||||||
dispatch(updateSettingsSuccess(response.data));
|
dispatch(updateSettingsSuccess(response.data));
|
||||||
browserHistory.push('/');
|
browserHistory.push('/');
|
||||||
dispatch(showToast(5500));
|
dispatch(showToast(5500));
|
||||||
dispatch(setToastText('Settings saved.'));
|
dispatch(setToastText('Toast.SettingsSaved'));
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const { response } = error;
|
const { response } = error;
|
||||||
|
|
|
@ -88,7 +88,8 @@
|
||||||
"SketchSaved": "Sketch saved.",
|
"SketchSaved": "Sketch saved.",
|
||||||
"SketchFailedSave": "Failed to save sketch.",
|
"SketchFailedSave": "Failed to save sketch.",
|
||||||
"AutosaveEnabled": "Autosave enabled.",
|
"AutosaveEnabled": "Autosave enabled.",
|
||||||
"LangChange": "Language changed"
|
"LangChange": "Language changed",
|
||||||
|
"SettingsSaved": "Settings saved."
|
||||||
},
|
},
|
||||||
"Toolbar": {
|
"Toolbar": {
|
||||||
"Preview": "Preview",
|
"Preview": "Preview",
|
||||||
|
@ -198,12 +199,18 @@
|
||||||
},
|
},
|
||||||
"Common": {
|
"Common": {
|
||||||
"Error": "Error",
|
"Error": "Error",
|
||||||
|
"ErrorARIA": "Error",
|
||||||
"Save": "Save",
|
"Save": "Save",
|
||||||
"p5logoARIA": "p5.js Logo",
|
"p5logoARIA": "p5.js Logo",
|
||||||
"DeleteConfirmation": "Are you sure you want to delete {{name}}?"
|
"DeleteConfirmation": "Are you sure you want to delete {{name}}?"
|
||||||
},
|
},
|
||||||
"IDEView": {
|
"IDEView": {
|
||||||
"SubmitFeedback": "Submit Feedback"
|
"SubmitFeedback": "Submit Feedback",
|
||||||
|
"SubmitFeedbackARIA": "submit-feedback",
|
||||||
|
"AddCollectionTitle": "Add to collection",
|
||||||
|
"AddCollectionARIA":"add to collection",
|
||||||
|
"ShareTitle": "Share",
|
||||||
|
"ShareARIA":"share"
|
||||||
},
|
},
|
||||||
"NewFileModal": {
|
"NewFileModal": {
|
||||||
"Title": "Create File",
|
"Title": "Create File",
|
||||||
|
|
|
@ -88,7 +88,8 @@
|
||||||
"SketchSaved": "Bosquejo guardado.",
|
"SketchSaved": "Bosquejo guardado.",
|
||||||
"SketchFailedSave": "Fallo al guardar el bosquejo.",
|
"SketchFailedSave": "Fallo al guardar el bosquejo.",
|
||||||
"AutosaveEnabled": "Grabado automático activado.",
|
"AutosaveEnabled": "Grabado automático activado.",
|
||||||
"LangChange": "Lenguaje cambiado"
|
"LangChange": "Lenguaje cambiado",
|
||||||
|
"SettingsSaved": "Configuración guardada."
|
||||||
},
|
},
|
||||||
"Toolbar": {
|
"Toolbar": {
|
||||||
"Preview": "Vista previa",
|
"Preview": "Vista previa",
|
||||||
|
@ -198,12 +199,18 @@
|
||||||
},
|
},
|
||||||
"Common": {
|
"Common": {
|
||||||
"Error": "Error",
|
"Error": "Error",
|
||||||
|
"ErrorARIA": "Error",
|
||||||
"Save": "Guardar",
|
"Save": "Guardar",
|
||||||
"p5logoARIA": "Logo p5.js ",
|
"p5logoARIA": "Logo p5.js ",
|
||||||
"DeleteConfirmation": "¿Estás seguro que quieres borrar {{name}}?"
|
"DeleteConfirmation": "¿Estás seguro que quieres borrar {{name}}?"
|
||||||
},
|
},
|
||||||
"IDEView": {
|
"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": {
|
"NewFileModal": {
|
||||||
"Title": "Crear Archivo",
|
"Title": "Crear Archivo",
|
||||||
|
|
Loading…
Reference in a new issue