Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locales: add Spanish translations #2249

Merged
merged 5 commits into from Jan 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 58 additions & 1 deletion lib/locales/es.js
Expand Up @@ -11,7 +11,64 @@
module.exports = {
moduleType: 'locale',
name: 'es',
dictionary: {},
dictionary: {
'Autoscale': 'Autoescalar', // components/modebar/buttons.js:139
'Box Select': 'Seleccionar Caja', // components/modebar/buttons.js:103
'Click to enter Colorscale title': 'Haga clic para introducir el título de la Escala de Color', // plots/plots.js:303
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, these ones are getting a bit long, worries me about overflow. Do you think it would make sense to users that these are elements you can click and type new values if we leave off "Haga clic para" and just start at "Introducir" (or some conjugation thereof)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it should be clear enough. In theory, DRAE accepts clicar, but my experience is that clicar isn't so commonly used.

'Click to enter Component A title': 'Haga clic para introducir el título del Componente A', // plots/ternary/ternary.js:392
'Click to enter Component B title': 'Haga clic para introducir el título del Componente B', // plots/ternary/ternary.js:406
'Click to enter Component C title': 'Haga clic para introducir el título del Componente C', // plots/ternary/ternary.js:417
'Click to enter Plot title': 'Haga clic para introducir el título de la Gráfica', // plot_api/plot_api.js:579
'Click to enter X axis title': 'Haga clic para introducir el título del eje X', // plots/plots.js:301
'Click to enter Y axis title': 'Haga clic para introducir el título del eje Y', // plots/plots.js:302
'Compare data on hover': 'Comparar datos al pasar por encima', // components/modebar/buttons.js:167
'Double-click on legend to isolate one trace': 'Haga doble-clic en la leyenda para aislar una traza', // components/legend/handle_click.js:90
'Double-click to zoom back out': 'Haga doble-clic para restaurar la escala', // plots/cartesian/dragbox.js:335
'Download plot as a png': 'Descargar gráfica como png', // components/modebar/buttons.js:52
'Edit in Chart Studio': 'Editar en Chart Studio', // components/modebar/buttons.js:76
'IE only supports svg. Changing format to svg.': 'IE solo soporta svg. Cambiendo formato a svg.', // components/modebar/buttons.js:60
'Lasso Select': 'Seleccionar con lazo', // components/modebar/buttons.js:112
'Orbital rotation': 'Rotación esférica', // components/modebar/buttons.js:279
'Pan': 'Modo Panorámica', // components/modebar/buttons.js:94
'Produced with Plotly': 'Hecho con Plotly', // components/modebar/modebar.js:256
'Reset': 'Reiniciar', // components/modebar/buttons.js:431
'Reset axes': 'Reiniciar ejes', // components/modebar/buttons.js:148
'Reset camera to default': 'Restaurar cámara predeterminada', // components/modebar/buttons.js:313
'Reset camera to last save': 'Restaurar anterior cámara', // components/modebar/buttons.js:321
'Reset view': 'Restaurar vista', // components/modebar/buttons.js:582
'Reset views': 'Restaurar vistas', // components/modebar/buttons.js:528
'Show closest data on hover': 'Mostrar el dato más cercano al pasar por encima', // components/modebar/buttons.js:157
'Snapshot succeeded': 'La captura de la instantánea finalizó correctamente', // components/modebar/buttons.js:66
'Sorry, there was a problem downloading your snapshot!': '¡La descarga de la instantánea falló!', // components/modebar/buttons.js:69
'Taking snapshot - this may take a few seconds': 'Capturando una instantánea - podría tardar unos segundos', // components/modebar/buttons.js:57
'Toggle Spike Lines': 'Mostrar/Ocultar Guías', // components/modebar/buttons.js:547
'Toggle show closest data on hover': 'Activar/Desactivar mostrar el dato más cercano al pasar por encima', // components/modebar/buttons.js:352
'Turntable rotation': 'Rotación plana', // components/modebar/buttons.js:288
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that's cool - it's like planar vs spherical rotation? That may be a good reference for other translators in the future 🏆

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this translation, I followed Blender.

'Zoom': 'Modo Ampliar/Reducir', // components/modebar/buttons.js:85
'Zoom in': 'Ampliar', // components/modebar/buttons.js:121
'Zoom out': 'Reducir', // components/modebar/buttons.js:130
'close:': 'cierre:', // traces/ohlc/transform.js:139
'high:': 'alza:', // traces/ohlc/transform.js:137
'incoming flow count:': 'flujo de entrada', // traces/sankey/plot.js:142
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing : (also outgoing)

'kde:': 'edp:', // traces/violin/calc.js:73
'lat:': 'lat:', // traces/scattergeo/calc.js:48
'lon:': 'lon:', // traces/scattergeo/calc.js:49
'low:': 'baja:', // traces/ohlc/transform.js:138
'lower fence:': 'límite inferior:', // traces/box/calc.js:134
'max:': 'max:', // traces/box/calc.js:132
'mean ± σ:': 'media ± σ:', // traces/box/calc.js:133
'mean:': 'media:', // traces/box/calc.js:133
'median:': 'mediana:', // traces/box/calc.js:128
'min:': 'min:', // traces/box/calc.js:129
'open:': 'apertura:', // traces/ohlc/transform.js:136
'outgoing flow count:': 'flujo de salida', // traces/sankey/plot.js:143
'q1:': 'q1:', // traces/box/calc.js:130
'q3:': 'q3:', // traces/box/calc.js:131
'source:': 'fuente:', // traces/sankey/plot.js:140
'target:': 'destino:', // traces/sankey/plot.js:141
'trace': 'traza:', // plots/plots.js:305
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one actually does not get a trailing quote - it's used in default trace names "trace 0" etc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I mean trailing colon)

'upper fence:': 'límite superior:' // traces/box/calc.js:135
},
format: {
days: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
shortDays: ['Dom', 'Lun', 'Mar', 'Mié', 'Juv', 'Vie', 'Sáb'],
Expand Down