From 95b5d7a2347b496cf3e75de508c3fb2164ae0118 Mon Sep 17 00:00:00 2001 From: matteo Date: Mon, 14 May 2018 15:50:08 +0200 Subject: [PATCH 1/3] Italian translation --- lib/locales/it.js | 54 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/lib/locales/it.js b/lib/locales/it.js index 80b1e027429..f7dfb51c049 100644 --- a/lib/locales/it.js +++ b/lib/locales/it.js @@ -11,7 +11,59 @@ module.exports = { moduleType: 'locale', name: 'it', - dictionary: {}, + dictionary: { + 'Autoscale': 'Scala automaticamente', // components/modebar/buttons.js:139 + 'Box Select': 'Selezione box', // components/modebar/buttons.js:103 + 'Click to enter Colorscale title': 'Clicca per inserire un titolo alla scala di colori', // plots/plots.js:437 + 'Click to enter Component A title': 'Clicca per inserire un titolo al componente A', // plots/ternary/ternary.js:386 + 'Click to enter Component B title': 'Clicca per inserire un titolo al componente B', // plots/ternary/ternary.js:400 + 'Click to enter Component C title': 'Clicca per inserire un titolo al componente C', // plots/ternary/ternary.js:411 + 'Click to enter Plot title': 'Clicca per inserire un titolo al grafico', // plot_api/plot_api.js:579 + 'Click to enter X axis title': 'Clicca per inserire un titolo all\'asse X', // plots/plots.js:435 + 'Click to enter Y axis title': 'Clicca per inserire un titolo all\'asse Y', // plots/plots.js:436 + 'Compare data on hover': 'Paragona i dati al passaggio del mouse', // components/modebar/buttons.js:167 + 'Double-click on legend to isolate one trace': 'Doppio click per isolare i dati di una traccia', // components/legend/handle_click.js:90 + 'Double-click to zoom back out': 'Doppio click per tornare allo zoom iniziale', // plots/cartesian/dragbox.js:299 + 'Download plot as a png': 'Scarica il grafico come immagine png', // components/modebar/buttons.js:52 + 'Edit in Chart Studio': 'Modifica in Chart Studio', // components/modebar/buttons.js:76 + 'IE only supports svg. Changing format to svg.': 'IE supporta solo svg. Modifica formato in svg.', // components/modebar/buttons.js:60 + 'Lasso Select': 'Selezione lazo', // components/modebar/buttons.js:112 + 'Orbital rotation': 'Rotazione orbitale', // components/modebar/buttons.js:279 + 'Pan': 'Sposta', // components/modebar/buttons.js:94 + 'Produced with Plotly': 'Creato con Plotly', // components/modebar/modebar.js:256 + 'Reset': 'Reset', // components/modebar/buttons.js:432 + 'Reset axes': 'Resetta gli assi', // components/modebar/buttons.js:148 + 'Reset camera to default': 'Reimposta la camera ai valori predefiniti', // components/modebar/buttons.js:314 + 'Reset camera to last save': 'Reimposta la camera all\' ultimo salvataggio', // components/modebar/buttons.js:322 + 'Reset view': 'Reimposta la vista', // components/modebar/buttons.js:583 + 'Reset views': 'Reimposta le viste', // components/modebar/buttons.js:529 + 'Show closest data on hover': 'Mostra i dati più vicini al passaggio del mouse', // components/modebar/buttons.js:157 + 'Snapshot succeeded': 'Screenshot creato con successo', // components/modebar/buttons.js:66 + 'Sorry, there was a problem downloading your snapshot!': 'Si è verificato un errore durante la creazione dello screenshot', // components/modebar/buttons.js:69 + 'Taking snapshot - this may take a few seconds': 'Creazione screenshot - potrebbe richiedere qualche secondo', // components/modebar/buttons.js:57 + 'Zoom': 'Zoom', // components/modebar/buttons.js:85 + 'Zoom in': 'Ingrandisci', // components/modebar/buttons.js:121 + 'Zoom out': 'Rimpicciolisci', // components/modebar/buttons.js:130 + 'close:': 'chiudi:', // traces/ohlc/transform.js:139 + 'trace': 'traccia', // plots/plots.js:439 + 'lat:': 'lat.:', // traces/scattergeo/calc.js:48 + 'lon:': 'lon.:', // traces/scattergeo/calc.js:49 + 'q1:': 'q1:', // traces/box/calc.js:130 + 'q3:': 'q3:', // traces/box/calc.js:131 + 'source:': 'sorgente:', // traces/sankey/plot.js:140 + 'target:': 'target:', // traces/sankey/plot.js:141 + '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 + 'Turntable rotation': 'Rotazione piattaforma', // components/modebar/buttons.js:288 + 'Toggle Spike Lines': 'Abilita linee', // components/modebar/buttons.js:548 + 'open:': 'apri:', // traces/ohlc/transform.js:136 + 'high:': 'alto:', // traces/ohlc/transform.js:137 + 'low:': 'basso:', // traces/ohlc/transform.js:138 + 'Toggle show closest data on hover': 'Abilita mostra i dati più vicini al passaggio del mouse', // components/modebar/buttons.js:353 + }, format: { days: [ 'Domenica', 'Lunedì', 'Martedì', 'Mercoledì', From 9bfae729df36f5109bc3e6790b8cf97b05ee318c Mon Sep 17 00:00:00 2001 From: matteo Date: Tue, 15 May 2018 11:57:23 +0200 Subject: [PATCH 2/3] improved Italian translation --- lib/locales/it.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/locales/it.js b/lib/locales/it.js index f7dfb51c049..2b206594c7a 100644 --- a/lib/locales/it.js +++ b/lib/locales/it.js @@ -21,6 +21,7 @@ module.exports = { 'Click to enter Plot title': 'Clicca per inserire un titolo al grafico', // plot_api/plot_api.js:579 'Click to enter X axis title': 'Clicca per inserire un titolo all\'asse X', // plots/plots.js:435 'Click to enter Y axis title': 'Clicca per inserire un titolo all\'asse Y', // plots/plots.js:436 + 'Click to enter radial axis title': 'Clicca per inserire un titolo per l\' asse radiale', // plots/plots.js:436 'Compare data on hover': 'Paragona i dati al passaggio del mouse', // components/modebar/buttons.js:167 'Double-click on legend to isolate one trace': 'Doppio click per isolare i dati di una traccia', // components/legend/handle_click.js:90 'Double-click to zoom back out': 'Doppio click per tornare allo zoom iniziale', // plots/cartesian/dragbox.js:299 @@ -57,11 +58,17 @@ module.exports = { 'mean:': 'media:', // traces/box/calc.js:133 'median:': 'mediana:', // traces/box/calc.js:128 'min:': 'min.:', // traces/box/calc.js:129 + 'new text:': 'Nuovo testo:', // traces/box/calc.js:129 + 'upper fence:': 'limite superiore', // traces/box/calc.js:129 + 'lower fence:': 'limite inferiore', // traces/box/calc.js:129 'Turntable rotation': 'Rotazione piattaforma', // components/modebar/buttons.js:288 - 'Toggle Spike Lines': 'Abilita linee', // components/modebar/buttons.js:548 + 'Toggle Spike Lines': 'Abilita linee di identificazione', // components/modebar/buttons.js:548 'open:': 'apri:', // traces/ohlc/transform.js:136 'high:': 'alto:', // traces/ohlc/transform.js:137 + 'kde:': 'kde:', // traces/ohlc/transform.js:138 'low:': 'basso:', // traces/ohlc/transform.js:138 + 'incoming flow count: ': 'Flusso in entrata:', // traces/ohlc/transform.js:138 + 'outgoing flow count:: ': 'Flusso in uscita:', // traces/ohlc/transform.js:138 'Toggle show closest data on hover': 'Abilita mostra i dati più vicini al passaggio del mouse', // components/modebar/buttons.js:353 }, format: { From de9a5a4f579a0f5561c749608883846cab0430a9 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Tue, 15 May 2018 11:15:59 -0400 Subject: [PATCH 3/3] Fix punctuation in it.js Keys must match input keys exactly, and trailing colons should be preserved in the translation. Also tweaked a couple of the comments to point to the right files (note it's also fine to omit these comments entirely from the translation files, as the file dist/translation-keys.txt always has up-to-date line references as of the latest release) --- lib/locales/it.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/locales/it.js b/lib/locales/it.js index 2b206594c7a..876ffedf81e 100644 --- a/lib/locales/it.js +++ b/lib/locales/it.js @@ -58,17 +58,17 @@ module.exports = { 'mean:': 'media:', // traces/box/calc.js:133 'median:': 'mediana:', // traces/box/calc.js:128 'min:': 'min.:', // traces/box/calc.js:129 - 'new text:': 'Nuovo testo:', // traces/box/calc.js:129 - 'upper fence:': 'limite superiore', // traces/box/calc.js:129 - 'lower fence:': 'limite inferiore', // traces/box/calc.js:129 + 'new text:': 'Nuovo testo:', // plots/plots.js:327 + 'upper fence:': 'limite superiore:', // traces/box/calc.js:129 + 'lower fence:': 'limite inferiore:', // traces/box/calc.js:129 'Turntable rotation': 'Rotazione piattaforma', // components/modebar/buttons.js:288 'Toggle Spike Lines': 'Abilita linee di identificazione', // components/modebar/buttons.js:548 'open:': 'apri:', // traces/ohlc/transform.js:136 'high:': 'alto:', // traces/ohlc/transform.js:137 - 'kde:': 'kde:', // traces/ohlc/transform.js:138 + 'kde:': 'kde:', // traces/violin/calc.js:73 'low:': 'basso:', // traces/ohlc/transform.js:138 - 'incoming flow count: ': 'Flusso in entrata:', // traces/ohlc/transform.js:138 - 'outgoing flow count:: ': 'Flusso in uscita:', // traces/ohlc/transform.js:138 + 'incoming flow count:': 'Flusso in entrata:', // traces/sankey/plot.js:142 + 'outgoing flow count:': 'Flusso in uscita:', // traces/sankey/plot.js:143 'Toggle show closest data on hover': 'Abilita mostra i dati più vicini al passaggio del mouse', // components/modebar/buttons.js:353 }, format: {