Skip to content

Commit e6ca173

Browse files
oruburosandrewn
andauthored
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 <[email protected]>
1 parent 5af98ca commit e6ca173

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

client/modules/IDE/pages/IDEView.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,15 @@ class IDEView extends React.Component {
457457
<Overlay
458458
title={this.props.t('IDEView.SubmitFeedback')}
459459
previousPath={this.props.ide.previousPath}
460-
ariaLabel="submit-feedback"
460+
ariaLabel={this.props.t('IDEView.SubmitFeedbackARIA')}
461461
>
462462
<Feedback previousPath={this.props.ide.previousPath} />
463463
</Overlay>
464464
)}
465465
{this.props.location.pathname.match(/add-to-collection$/) && (
466466
<Overlay
467-
ariaLabel="add to collection"
468-
title="Add to collection"
467+
ariaLabel={this.props.t('IDEView.AddCollectionARIA')}
468+
title={this.props.t('IDEView.AddCollectionTitle')}
469469
previousPath={this.props.ide.previousPath}
470470
actions={<CollectionSearchbar />}
471471
isFixedHeight
@@ -479,8 +479,8 @@ class IDEView extends React.Component {
479479
)}
480480
{this.props.ide.shareModalVisible && (
481481
<Overlay
482-
title="Share"
483-
ariaLabel="share"
482+
title={this.props.t('IDEView.ShareTitle')}
483+
ariaLabel={this.props.t('IDEView.ShareARIA')}
484484
closeOverlay={this.props.closeShareModal}
485485
>
486486
<ShareModal
@@ -501,8 +501,8 @@ class IDEView extends React.Component {
501501
)}
502502
{this.props.ide.errorType && (
503503
<Overlay
504-
title="Error"
505-
ariaLabel={this.props.t('Common.Error')}
504+
title={this.props.t('Common.Error')}
505+
ariaLabel={this.props.t('Common.ErrorARIA')}
506506
closeOverlay={this.props.hideErrorModal}
507507
>
508508
<ErrorModal

client/modules/User/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export function updateSettings(formValues) {
229229
dispatch(updateSettingsSuccess(response.data));
230230
browserHistory.push('/');
231231
dispatch(showToast(5500));
232-
dispatch(setToastText('Settings saved.'));
232+
dispatch(setToastText('Toast.SettingsSaved'));
233233
})
234234
.catch((error) => {
235235
const { response } = error;

translations/locales/en-US/translations.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
"SketchSaved": "Sketch saved.",
8989
"SketchFailedSave": "Failed to save sketch.",
9090
"AutosaveEnabled": "Autosave enabled.",
91-
"LangChange": "Language changed"
91+
"LangChange": "Language changed",
92+
"SettingsSaved": "Settings saved."
9293
},
9394
"Toolbar": {
9495
"Preview": "Preview",
@@ -198,12 +199,18 @@
198199
},
199200
"Common": {
200201
"Error": "Error",
202+
"ErrorARIA": "Error",
201203
"Save": "Save",
202204
"p5logoARIA": "p5.js Logo",
203205
"DeleteConfirmation": "Are you sure you want to delete {{name}}?"
204206
},
205207
"IDEView": {
206-
"SubmitFeedback": "Submit Feedback"
208+
"SubmitFeedback": "Submit Feedback",
209+
"SubmitFeedbackARIA": "submit-feedback",
210+
"AddCollectionTitle": "Add to collection",
211+
"AddCollectionARIA":"add to collection",
212+
"ShareTitle": "Share",
213+
"ShareARIA":"share"
207214
},
208215
"NewFileModal": {
209216
"Title": "Create File",

translations/locales/es-419/translations.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
"SketchSaved": "Bosquejo guardado.",
8989
"SketchFailedSave": "Fallo al guardar el bosquejo.",
9090
"AutosaveEnabled": "Grabado automático activado.",
91-
"LangChange": "Lenguaje cambiado"
91+
"LangChange": "Lenguaje cambiado",
92+
"SettingsSaved": "Configuración guardada."
9293
},
9394
"Toolbar": {
9495
"Preview": "Vista previa",
@@ -198,12 +199,18 @@
198199
},
199200
"Common": {
200201
"Error": "Error",
202+
"ErrorARIA": "Error",
201203
"Save": "Guardar",
202204
"p5logoARIA": "Logo p5.js ",
203205
"DeleteConfirmation": "¿Estás seguro que quieres borrar {{name}}?"
204206
},
205207
"IDEView": {
206-
"SubmitFeedback": "Enviar retroalimentación"
208+
"SubmitFeedback": "Enviar retroalimentación",
209+
"SubmitFeedbackARIA": "Enviar retroalimentación",
210+
"AddCollectionTitle": "Agregar a colección",
211+
"AddCollectionARIA":"Agregar a colección",
212+
"ShareTitle": "Compartir",
213+
"ShareARIA":"compartir"
207214
},
208215
"NewFileModal": {
209216
"Title": "Crear Archivo",

0 commit comments

Comments
 (0)