From bf2c6dbf8619718acd41ff0519f9c00abd0f62fb Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Thu, 7 Dec 2017 11:51:18 -0500 Subject: [PATCH] move colons into the translations --- dist/translation-keys.txt | 40 +++++++++++++++++------------------ src/traces/box/calc.js | 16 +++++++------- src/traces/box/hover.js | 2 +- src/traces/ohlc/transform.js | 8 +++---- src/traces/sankey/plot.js | 8 +++---- src/traces/scattergeo/calc.js | 4 ++-- src/traces/violin/calc.js | 2 +- src/traces/violin/hover.js | 2 +- 8 files changed, 41 insertions(+), 41 deletions(-) diff --git a/dist/translation-keys.txt b/dist/translation-keys.txt index 188115484a7..1ec205f13aa 100644 --- a/dist/translation-keys.txt +++ b/dist/translation-keys.txt @@ -7,20 +7,20 @@ Click to enter Component C title Click to enter Plot title Click to enter X axis title Click to enter Y axis title -Close +Close: Compare data on hover Double click on legend to isolate individual trace Double-click to
zoom back out Download plot as a png Edit in Chart Studio -High +High: IE only supports svg. Changing format to svg. -Incoming flow count +Incoming flow count: Lasso Select -Low -Open +Low: +Open: Orbital rotation -Outgoing flow count +Outgoing flow count: Pan Produced with Plotly Reset @@ -32,9 +32,9 @@ Reset views Show closest data on hover Snapshot succeeded Sorry there was a problem downloading your snapshot! -Source +Source: Taking snapshot - this may take a few seconds -Target +Target: Toggle Spike Lines Toggle show closest data on hover Turntable rotation @@ -42,19 +42,19 @@ Zoom Zoom in Zoom out cannot use zsmooth: "fast" -kde -lat +kde: +lat: log axis found -lon -lower fence -max -mean -mean ± σ -median -min -q1 -q3 +lon: +lower fence: +max: +mean ± σ: +mean: +median: +min: +q1: +q3: trace -upper fence +upper fence: x scale is not linear y scale is not linear \ No newline at end of file diff --git a/src/traces/box/calc.js b/src/traces/box/calc.js index 634fd00bccc..b6a5fa83139 100644 --- a/src/traces/box/calc.js +++ b/src/traces/box/calc.js @@ -125,14 +125,14 @@ module.exports = function calc(gd, trace) { posLetter: posLetter, valLetter: valLetter, labels: { - med: _(gd, 'median'), - min: _(gd, 'min'), - q1: _(gd, 'q1'), - q3: _(gd, 'q3'), - max: _(gd, 'max'), - mean: trace.boxmean === 'sd' ? _(gd, 'mean ± σ') : _(gd, 'mean'), - lf: _(gd, 'lower fence'), - uf: _(gd, 'upper fence') + med: _(gd, 'median:'), + min: _(gd, 'min:'), + q1: _(gd, 'q1:'), + q3: _(gd, 'q3:'), + max: _(gd, 'max:'), + mean: trace.boxmean === 'sd' ? _(gd, 'mean ± σ:') : _(gd, 'mean:'), + lf: _(gd, 'lower fence:'), + uf: _(gd, 'upper fence:') } }; diff --git a/src/traces/box/hover.js b/src/traces/box/hover.js index b45eeed01ca..839f065e72e 100644 --- a/src/traces/box/hover.js +++ b/src/traces/box/hover.js @@ -159,7 +159,7 @@ function hoverOnBoxes(pointData, xval, yval, hovermode) { pointData2[vLetter + '0'] = pointData2[vLetter + '1'] = valPx; pointData2[vLetter + 'LabelVal'] = val; - pointData2[vLetter + 'Label'] = t.labels[attr] + ': ' + Axes.hoverLabelText(vAxis, val); + pointData2[vLetter + 'Label'] = t.labels[attr] + ' ' + Axes.hoverLabelText(vAxis, val); if(attr === 'mean' && ('sd' in di) && trace.boxmean === 'sd') { pointData2[vLetter + 'err'] = di.sd; diff --git a/src/traces/ohlc/transform.js b/src/traces/ohlc/transform.js index 724d8062565..d10e497fe7a 100644 --- a/src/traces/ohlc/transform.js +++ b/src/traces/ohlc/transform.js @@ -133,10 +133,10 @@ exports.calcTransform = function calcTransform(gd, trace, opts) { close = trace.close, textIn = trace.text; - var openName = _(gd, 'Open') + ': '; - var highName = _(gd, 'High') + ': '; - var lowName = _(gd, 'Low') + ': '; - var closeName = _(gd, 'Close') + ': '; + var openName = _(gd, 'Open:') + ' '; + var highName = _(gd, 'High:') + ' '; + var lowName = _(gd, 'Low:') + ' '; + var closeName = _(gd, 'Close:') + ' '; var len = open.length, x = [], diff --git a/src/traces/sankey/plot.js b/src/traces/sankey/plot.js index 1f944823c8a..5c2efcd41b3 100644 --- a/src/traces/sankey/plot.js +++ b/src/traces/sankey/plot.js @@ -137,10 +137,10 @@ module.exports = function plot(gd, calcData) { }); }; - var sourceLabel = _(gd, 'Source') + ': '; - var targetLabel = _(gd, 'Target') + ': '; - var incomingLabel = _(gd, 'Incoming flow count') + ': '; - var outgoingLabel = _(gd, 'Outgoing flow count') + ': '; + var sourceLabel = _(gd, 'Source:') + ' '; + var targetLabel = _(gd, 'Target:') + ' '; + var incomingLabel = _(gd, 'Incoming flow count:') + ' '; + var outgoingLabel = _(gd, 'Outgoing flow count:') + ' '; var linkHoverFollow = function(element, d) { var trace = d.link.trace; diff --git a/src/traces/scattergeo/calc.js b/src/traces/scattergeo/calc.js index 7d370e7235f..1ec011c4dde 100644 --- a/src/traces/scattergeo/calc.js +++ b/src/traces/scattergeo/calc.js @@ -45,8 +45,8 @@ module.exports = function calc(gd, trace) { if(len) { calcTrace[0].t = { labels: { - lat: _(gd, 'lat') + ': ', - lon: _(gd, 'lon') + ': ' + lat: _(gd, 'lat:') + ' ', + lon: _(gd, 'lon:') + ' ' } }; } diff --git a/src/traces/violin/calc.js b/src/traces/violin/calc.js index abe79243ddb..34064a9b01a 100644 --- a/src/traces/violin/calc.js +++ b/src/traces/violin/calc.js @@ -70,7 +70,7 @@ module.exports = function calc(gd, trace) { groupStats.maxCount = Math.max(groupStats.maxCount, vals.length); } - cd[0].t.labels.kde = Lib._(gd, 'kde') + ': '; + cd[0].t.labels.kde = Lib._(gd, 'kde:'); return cd; }; diff --git a/src/traces/violin/hover.js b/src/traces/violin/hover.js index f8fc60933a0..a6363cf2761 100644 --- a/src/traces/violin/hover.js +++ b/src/traces/violin/hover.js @@ -62,7 +62,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode, hoverLay kdePointData[pLetter + '0'] = pOnPath[0]; kdePointData[pLetter + '1'] = pOnPath[1]; kdePointData[vLetter + '0'] = kdePointData[vLetter + '1'] = vValPx; - kdePointData[vLetter + 'Label'] = vLetter + ': ' + Axes.hoverLabelText(vAxis, vVal) + ', ' + cd[0].t.labels.kde + kdeVal.toFixed(3); + kdePointData[vLetter + 'Label'] = vLetter + ': ' + Axes.hoverLabelText(vAxis, vVal) + ', ' + cd[0].t.labels.kde + ' ' + kdeVal.toFixed(3); closeData.push(kdePointData); violinLineAttrs = {stroke: pointData.color};