Skip to content

Commit

Permalink
tweak a few of the string literals for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcjohnson committed Dec 8, 2017
1 parent cb2f00c commit 97821e9
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 66 deletions.
112 changes: 56 additions & 56 deletions dist/translation-keys.txt
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
Autoscale // components/modebar/buttons.js:139
Box Select // components/modebar/buttons.js:103
Click to enter Colorscale title // plots/plots.js:437
Click to enter Component A title // plots/ternary/ternary.js:386
Click to enter Component B title // plots/ternary/ternary.js:400
Click to enter Component C title // plots/ternary/ternary.js:411
Click to enter Plot title // plot_api/plot_api.js:579
Click to enter X axis title // plots/plots.js:435
Click to enter Y axis title // plots/plots.js:436
Close: // traces/ohlc/transform.js:139
Compare data on hover // components/modebar/buttons.js:167
Double click on legend to isolate individual trace // components/legend/handle_click.js:90
Double-click to zoom back out // plots/cartesian/dragbox.js:299
Download plot as a png // components/modebar/buttons.js:52
Edit in Chart Studio // components/modebar/buttons.js:76
High: // traces/ohlc/transform.js:137
IE only supports svg. Changing format to svg. // components/modebar/buttons.js:60
Incoming flow count: // traces/sankey/plot.js:142
Lasso Select // components/modebar/buttons.js:112
Low: // traces/ohlc/transform.js:138
Open: // traces/ohlc/transform.js:136
Orbital rotation // components/modebar/buttons.js:279
Outgoing flow count: // traces/sankey/plot.js:143
Pan // components/modebar/buttons.js:94
Produced with Plotly // components/modebar/modebar.js:256
Reset // components/modebar/buttons.js:432
Reset axes // components/modebar/buttons.js:148
Reset camera to default // components/modebar/buttons.js:314
Reset camera to last save // components/modebar/buttons.js:322
Reset view // components/modebar/buttons.js:583
Reset views // components/modebar/buttons.js:529
Show closest data on hover // components/modebar/buttons.js:157
Snapshot succeeded // components/modebar/buttons.js:66
Sorry there was a problem downloading your snapshot! // components/modebar/buttons.js:69
Source: // traces/sankey/plot.js:140
Taking snapshot - this may take a few seconds // components/modebar/buttons.js:57
Target: // traces/sankey/plot.js:141
Toggle Spike Lines // components/modebar/buttons.js:548
Toggle show closest data on hover // components/modebar/buttons.js:353
Turntable rotation // components/modebar/buttons.js:288
Zoom // components/modebar/buttons.js:85
Zoom in // components/modebar/buttons.js:121
Zoom out // components/modebar/buttons.js:130
kde: // traces/violin/calc.js:73
lat: // traces/scattergeo/calc.js:48
lon: // traces/scattergeo/calc.js:49
lower fence: // traces/box/calc.js:134
max: // traces/box/calc.js:132
mean ± σ: // traces/box/calc.js:133
mean: // traces/box/calc.js:133
median: // traces/box/calc.js:128
min: // traces/box/calc.js:129
q1: // traces/box/calc.js:130
q3: // traces/box/calc.js:131
trace // plots/plots.js:439
upper fence: // traces/box/calc.js:135
Autoscale // components/modebar/buttons.js:139
Box Select // components/modebar/buttons.js:103
Click to enter Colorscale title // plots/plots.js:437
Click to enter Component A title // plots/ternary/ternary.js:386
Click to enter Component B title // plots/ternary/ternary.js:400
Click to enter Component C title // plots/ternary/ternary.js:411
Click to enter Plot title // plot_api/plot_api.js:579
Click to enter X axis title // plots/plots.js:435
Click to enter Y axis title // plots/plots.js:436
Compare data on hover // components/modebar/buttons.js:167
Double-click on legend to isolate one trace // components/legend/handle_click.js:90
Double-click to zoom back out // plots/cartesian/dragbox.js:299
Download plot as a png // components/modebar/buttons.js:52
Edit in Chart Studio // components/modebar/buttons.js:76
IE only supports svg. Changing format to svg. // components/modebar/buttons.js:60
Lasso Select // components/modebar/buttons.js:112
Orbital rotation // components/modebar/buttons.js:279
Pan // components/modebar/buttons.js:94
Produced with Plotly // components/modebar/modebar.js:256
Reset // components/modebar/buttons.js:432
Reset axes // components/modebar/buttons.js:148
Reset camera to default // components/modebar/buttons.js:314
Reset camera to last save // components/modebar/buttons.js:322
Reset view // components/modebar/buttons.js:583
Reset views // components/modebar/buttons.js:529
Show closest data on hover // components/modebar/buttons.js:157
Snapshot succeeded // components/modebar/buttons.js:66
Sorry, there was a problem downloading your snapshot! // components/modebar/buttons.js:69
Taking snapshot - this may take a few seconds // components/modebar/buttons.js:57
Toggle Spike Lines // components/modebar/buttons.js:548
Toggle show closest data on hover // components/modebar/buttons.js:353
Turntable rotation // components/modebar/buttons.js:288
Zoom // components/modebar/buttons.js:85
Zoom in // components/modebar/buttons.js:121
Zoom out // components/modebar/buttons.js:130
close: // traces/ohlc/transform.js:139
high: // traces/ohlc/transform.js:137
incoming flow count: // traces/sankey/plot.js:142
kde: // traces/violin/calc.js:73
lat: // traces/scattergeo/calc.js:48
lon: // traces/scattergeo/calc.js:49
low: // traces/ohlc/transform.js:138
lower fence: // traces/box/calc.js:134
max: // traces/box/calc.js:132
mean ± σ: // traces/box/calc.js:133
mean: // traces/box/calc.js:133
median: // traces/box/calc.js:128
min: // traces/box/calc.js:129
open: // traces/ohlc/transform.js:136
outgoing flow count: // traces/sankey/plot.js:143
q1: // traces/box/calc.js:130
q3: // traces/box/calc.js:131
source: // traces/sankey/plot.js:140
target: // traces/sankey/plot.js:141
trace // plots/plots.js:439
upper fence: // traces/box/calc.js:135
2 changes: 1 addition & 1 deletion src/components/legend/handle_click.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = function handleClick(g, gd, numClicks) {
}

if(numClicks === 1 && SHOWISOLATETIP && gd.data && gd._context.showTips) {
Lib.notifier(Lib._(gd, 'Double click on legend to isolate individual trace'), 'long');
Lib.notifier(Lib._(gd, 'Double-click on legend to isolate one trace'), 'long');
SHOWISOLATETIP = false;
} else {
SHOWISOLATETIP = false;
Expand Down
2 changes: 1 addition & 1 deletion src/components/modebar/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ modeBarButtons.toImage = {
Lib.notifier(_(gd, 'Snapshot succeeded') + ' - ' + filename, 'long');
})
.catch(function() {
Lib.notifier(_(gd, 'Sorry there was a problem downloading your snapshot!'), 'long');
Lib.notifier(_(gd, 'Sorry, there was a problem downloading your snapshot!'), 'long');
});
}
};
Expand Down
8 changes: 4 additions & 4 deletions src/traces/ohlc/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [],
Expand Down
8 changes: 4 additions & 4 deletions src/traces/sankey/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97821e9

Please sign in to comment.