Skip to content

Commit

Permalink
localized delete confirm window
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Nov 17, 2017
1 parent 33547ac commit 87e1264
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web/client/components/widgets/widget/ChartWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ module.exports = ({
? <TableView data={data} {...props}/>
: <ChartView id={id} isAnimationActive={!loading} loading={loading} data={data} series={series} iconFit {...props} />}
{confirmDelete ? <ConfirmModal
confirmText={'Delete'}
cancelText={'Cancel'}
titleText={'Delete Widget'}
body={'Delete Widget'}
confirmText={<Message msgId="widgets.widget.menu.delete" />}
titleText={<Message msgId="widgets.widget.menu.delete" />}
body={<Message msgId="widgets.widget.menu.confirmDelete" />}
show={confirmDelete}
onClose={() => toggleDeleteConfirm(false)}
onConfirm={() => onDelete(id) }/> : null}
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.de-DE
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@
"showChartData": "Diagrammdaten anzeigen",
"edit": "Bearbeiten",
"delete": "Löschen",
"confirmDelete": "Bist du sicher?",
"downloadData": "Daten herunterladen",
"exportImage": "Bild exportieren"
}
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.en-US
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@
"showChartData": "Show chart data",
"edit": "Edit",
"delete": "Delete",
"confirmDelete": "Are you sure?",
"downloadData": "Download Data",
"exportImage": "Export Image"
}
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.es-ES
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@
"showChartData": "Mostrar datos de gráfico",
"edit": "Editar",
"delete": "Borrar",
"confirmDelete": "Está seguro?",
"downloadData": "Descargar datos",
"exportImage": "Exportar imagen"
}
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.fr-FR
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@
"showChartData": "Afficher les données de graphique",
"edit": "éditer",
"delete": "effacer",
"confirmDelete": "Êtes-vous sûr?",
"downloadData": "Télécharger les données",
"exportImage": "Exporter l'image"
}
Expand Down
1 change: 1 addition & 0 deletions web/client/translations/data.it-IT
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@
"showChartData": "Mostra dati del grafico",
"edit": "Modifica",
"delete": "Elimina",
"confirmDelete": "Sei sicuro?",
"downloadData": "Scarica dati",
"exportImage": "Esporta dati"
}
Expand Down

0 comments on commit 87e1264

Please sign in to comment.