You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: update UI strings for improved CTAs, grammar fixes, and consistency
Fix typos (hight→height, magnifiying→magnifying, maximun→maximum, Candelstick→Candlestick),
grammar errors (an user→a user, it working→it work, by change→by changing), and improve
UI copy across the plugin: clearer CTAs (Add New→Add New Chart, Insert→Insert Chart),
less jargon (Interpolate Nulls→Fill in Missing Values, Residue→Other Slice,
Aggregation Target→Group Tooltips By), more concise descriptions, and actionable
empty states.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'CSV file with chart data was not uploaded for chart %d.', $chart_id ), 'error', __FILE__, __LINE__ );
1321
-
$render->message = esc_html__( 'CSV file with chart data was not uploaded. Please try again.', 'visualizer' );
1322
-
update_post_meta( $chart_id, Visualizer_Plugin::CF_ERROR, esc_html__( 'CSV file with chart data was not uploaded. Please try again.', 'visualizer' ) );
1321
+
$render->message = esc_html__( 'No CSV file was received. Select a file and try uploading again.', 'visualizer' );
1322
+
update_post_meta( $chart_id, Visualizer_Plugin::CF_ERROR, esc_html__( 'No CSV file was received. Select a file and try uploading again.', 'visualizer' ) );
1323
1323
}
1324
1324
1325
1325
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Uploaded data for chart %d with source %s', $chart_id, print_r( $source, true ) ), 'debug', __FILE__, __LINE__ );
@@ -1369,7 +1369,7 @@ public function uploadData() {
1369
1369
} else {
1370
1370
$error = $source->get_error();
1371
1371
if ( empty( $error ) ) {
1372
-
$error = esc_html__( 'CSV file is broken or invalid. Please try again.', 'visualizer' );
1372
+
$error = esc_html__( 'The CSV file couldn\'t be read. Check that it\'s properly formatted and try again.', 'visualizer' );
'invalid_format' => esc_html__( 'This format pattern is not supported in the series settings field. To display percentages, use the Manual Configuration option instead.', 'visualizer' ),
@@ -78,7 +78,7 @@ private function _renderMessages() {
78
78
echo'<p>';
79
79
printf(
80
80
// translators: %s - the name of the option.
81
-
esc_html__( '%s option is disabled in your php.ini config. Please, enable it by change its value to 1. This option increases the speed of remote CSV uploading.', 'visualizer' ),
81
+
esc_html__( '%s option is disabled in your php.ini config. Please enable it by changing its value to 1. This option increases the speed of remote CSV uploading.', 'visualizer' ),
82
82
'<b>allow_url_fopen</b>'
83
83
);
84
84
echo'</p>';
@@ -347,10 +347,10 @@ private function _renderLibrary() {
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
479
-
esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU pattern set%2$s. Use something like #,### to get 1,234 as output, or $# to add dollar sign before digits. Pay attention that if you use % percentage format then your values will be multiplied by 100.', 'visualizer' ),
479
+
esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU pattern set%2$s. Use something like #,### to get 1,234 as output, or $# to add dollar sign before digits. Note: Using the % percentage format will multiply your values by 100.', 'visualizer' ),
esc_html__( 'Determines where to place the legend, compared to the chart area.', 'visualizer' )
221
+
esc_html__( 'Sets the legend position relative to the chart.', 'visualizer' )
222
222
);
223
223
224
224
self::_renderSelectItem(
@@ -324,10 +324,10 @@ protected function _renderTooltipSettigns() {
324
324
array(
325
325
'' => esc_html__( 'Default', 'visualizer' ),
326
326
'focus' => esc_html__( 'The tooltip will be displayed when the user hovers over an element', 'visualizer' ),
327
-
'selection' => esc_html__( 'The tooltip will be displayed when the user selects an element', 'visualizer' ),
327
+
'selection' => esc_html__( 'The tooltip will be displayed when the user selects an element.', 'visualizer' ),
328
328
'none' => esc_html__( 'The tooltip will not be displayed', 'visualizer' ),
329
329
),
330
-
esc_html__( 'Determines the user interaction that causes the tooltip to be displayed.', 'visualizer' )
330
+
esc_html__( 'Controls when the tooltip appears.', 'visualizer' )
331
331
);
332
332
333
333
self::_renderSelectItem(
@@ -373,7 +373,7 @@ protected function _renderViewSettings() {
373
373
374
374
echo'<div class="viz-section-delimiter"></div>';
375
375
376
-
self::_renderSectionDescription( esc_html__( 'Configure the background color for the main area of the chart and the chart border width and color.', 'visualizer' ) );
376
+
self::_renderSectionDescription( esc_html__( 'Set the chart\'s background color, border width, and border color.', 'visualizer' ) );
377
377
378
378
self::_renderTextItem(
379
379
esc_html__( 'Stroke Width', 'visualizer' ),
@@ -447,7 +447,7 @@ protected function _renderViewSettings() {
447
447
echo'</table>';
448
448
449
449
echo'<p class="viz-section-description">';
450
-
esc_html_e( 'Determines the width and hight of the chart area.', 'visualizer' );
450
+
esc_html_e( 'Determines the width and height of the chart area.', 'visualizer' );
esc_html__( 'The direction in which the values along the vertical axis grow.', 'visualizer' )
@@ -479,7 +479,7 @@ protected function _renderHorizontalAxisFormatField() {
479
479
esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
480
480
sprintf(
481
481
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
482
-
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.', 'visualizer' ),
482
+
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Note: Using the #%% percentage format will multiply your values by 100.', 'visualizer' ),
@@ -510,7 +510,7 @@ protected function _renderVerticalAxisFormatField() {
510
510
esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ),
511
511
sprintf(
512
512
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
513
-
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.', 'visualizer' ),
513
+
esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Note: Using the #%% percentage format will multiply your values by 100.', 'visualizer' ),
Copy file name to clipboardExpand all lines: classes/Visualizer/Render/Sidebar/Linear.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -185,11 +185,11 @@ protected function _renderLineSettingsItems() {
185
185
'single' => esc_html__( 'Single data point', 'visualizer' ),
186
186
'multiple' => esc_html__( 'Multiple data points', 'visualizer' ),
187
187
),
188
-
esc_html__( 'Determines how many data points an user can select on a chart.', 'visualizer' )
188
+
esc_html__( 'Determines how many data points a user can select on a chart.', 'visualizer' )
189
189
);
190
190
191
191
self::_renderSelectItem(
192
-
esc_html__( 'Aggregation Target', 'visualizer' ),
192
+
esc_html__( 'Group Tooltips By', 'visualizer' ),
193
193
'aggregationTarget',
194
194
$this->aggregationTarget,
195
195
array(
@@ -199,7 +199,7 @@ protected function _renderLineSettingsItems() {
199
199
'auto' => esc_html__( 'Group selected data by x-value if all selections have the same x-value, and by series otherwise', 'visualizer' ),
200
200
'none' => esc_html__( 'Show only one tooltip per selection', 'visualizer' ),
201
201
),
202
-
esc_html__( 'Determines how multiple data selections are rolled up into tooltips. To make it working you need to set multiple selection mode and tooltip trigger to display it when an user selects an element.', 'visualizer' )
202
+
esc_html__( 'Determines how multiple data selections are rolled up into tooltips. To make it work, you need to set multiple selection mode and tooltip trigger to display it when a user selects an element.', 'visualizer' )
0 commit comments