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
if ( strpos( $current_screen->id, $page_to_check ) !== false ) {
112
112
$footer_text = sprintf(
113
+
// translators: %1$s - the name of the plugin (Visualizer), %2$s - message (You can help us by leaving a), %3$s - HTML entity code.
113
114
__( 'Enjoying %1$s? %2$s %3$s rating. Thank you for being so supportive!', 'visualizer' ),
114
115
'<b>Visualizer</b>',
115
116
esc_html__( 'You can help us by leaving a', 'visualizer' ),
@@ -1335,7 +1336,7 @@ public function add_black_friday_data( $configs ) {
1335
1336
$config = $configs['default'];
1336
1337
1337
1338
// translators: %1$s - HTML tag, %2$s - discount, %3$s - HTML tag, %4$s - product name.
1338
-
$message_template = __( 'Our biggest sale of the year: %1$sup to %2$s OFF%3$s on %4$s. Don\'t miss this limited-time offer.', 'wp-cloudflare-page-cache' );
1339
+
$message_template = __( 'Our biggest sale of the year: %1$sup to %2$s OFF%3$s on %4$s. Don\'t miss this limited-time offer.', 'visualizer' );
1339
1340
$product_label = 'Visualizer';
1340
1341
$discount = '70%';
1341
1342
@@ -1345,7 +1346,7 @@ public function add_black_friday_data( $configs ) {
1345
1346
1346
1347
if ( $is_pro ) {
1347
1348
// translators: %1$s - HTML tag, %2$s - discount, %3$s - HTML tag, %4$s - product name.
1348
-
$message_template = __( 'Get %1$sup to %2$s off%3$s when you upgrade your %4$s plan or renew early.', 'wp-cloudflare-page-cache' );
1349
+
$message_template = __( 'Get %1$sup to %2$s off%3$s when you upgrade your %4$s plan or renew early.', 'visualizer' );
<li><?phpechosprintf( __( 'For examples of queries and links to resources that you can use with this feature, please click %1$shere%2$s', 'visualizer' ), '<a href="' . VISUALIZER_DB_QUERY_DOC_URL . '" target="_blank">', '</a>' ); ?></li>
94
-
<li><?phpechosprintf( __( 'Use %1$sShift+Space%2$s for autocompleting keywords or table names.', 'visualizer' ), '<span class="visualizer-emboss">', '</span>' ); ?></li>
93
+
<li>
94
+
<?php
95
+
echosprintf(
96
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
97
+
__( 'For examples of queries and links to resources that you can use with this feature, please click %1$shere%2$s', 'visualizer' ),
@@ -180,7 +198,16 @@ public static function _renderJsonScreen( $args ) {
180
198
<form id="json-endpoint-form">
181
199
<div class="json-wizard-hints">
182
200
<ul class="info">
183
-
<li><?phpechosprintf( __( 'If you want to add authentication or headers to the endpoint or change the request in any way, please refer to our document %1$shere%2$s.', 'visualizer' ), '<a href="https://docs.themeisle.com/article/1043-visualizer-how-to-extend-rest-endpoints-with-json-response" target="_blank">', '</a>' ); ?></li>
201
+
<li>
202
+
<?php
203
+
echosprintf(
204
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
205
+
__( 'If you want to add authentication or headers to the endpoint or change the request in any way, please refer to our document %1$shere%2$s.', 'visualizer' ),
@@ -775,7 +812,17 @@ public static function _renderTabBasic( $args ) {
775
812
<div class="viz-group-content">
776
813
<div>
777
814
<p class="viz-group-description"><?phpesc_html_e( 'Select and upload your data CSV file here. The first row of the CSV file should contain the column headings. The second one should contain series type (string, number, boolean, date, datetime, timeofday).', 'visualizer' ); ?></p>
778
-
<p class="viz-group-description viz-info-msg"><b><?phpechosprintf( __( 'If you are unsure about how to format your data CSV then please take a look at this sample: %1$s %2$s%3$s. If you are using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ), '<a href="' . VISUALIZER_ABSURL . 'samples/' . $type . '.csv" target="_blank">', $type, '.csv</a>' ); ?></b></p>
815
+
<p class="viz-group-description viz-info-msg">
816
+
<b>
817
+
<?php
818
+
echosprintf(
819
+
// translators: $s - the chart type with the link attached.
820
+
__( 'If you are unsure about how to format your data CSV then please take a look at this sample: %s. If you are using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ),
@@ -798,8 +845,27 @@ public static function _renderTabBasic( $args ) {
798
845
<span class="viz-section-title"><?php_e( 'Import from CSV', 'visualizer' ); ?></span>
799
846
<div class="only-pro-anchor">
800
847
<div class="viz-section-items section-items">
801
-
<p class="viz-group-description"><?phpechosprintf( __( 'You can use this to import data from a remote CSV file or %1$sGoogle Spreadsheet%2$s.', 'visualizer' ), '<a href="https://docs.themeisle.com/article/607-how-can-i-populate-data-from-google-spreadsheet" target="_blank" >', '</a>' ); ?> </p>
802
-
<p class="viz-group-description viz-info-msg"><b><?phpechosprintf( __( 'If you are unsure about how to format your data CSV then please take a look at this sample: %1$s %2$s%3$s. If you are using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ), '<a href="' . VISUALIZER_ABSURL . 'samples/' . $type . '.csv" target="_blank">', $type, '.csv</a>' ); ?></b></p>
848
+
<p class="viz-group-description">
849
+
<?php
850
+
echosprintf(
851
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
852
+
__( 'You can use this to import data from a remote CSV file or %1$sGoogle Spreadsheet%2$s.', 'visualizer' ),
// translators: %s - the chart type with the link attached.
863
+
__( 'If you are unsure about how to format your data CSV then please take a look at this sample: %s. If you are using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ),
printf( 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' ), '<b>allow_url_fopen</b>' );
64
+
printf(
65
+
// translators: %s - the name of the option.
66
+
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' ),
Copy file name to clipboardExpand all lines: classes/Visualizer/Render/Sidebar.php
+42-6Lines changed: 42 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,12 @@ protected function _renderChartTitleSettings() {
125
125
esc_html__( 'Chart Description', 'visualizer' ),
126
126
'description',
127
127
$this->description,
128
-
sprintf( esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ), '<a href="https://developers.google.com/search/docs/data-types/dataset#dataset" target="_blank">', '</a>' )
128
+
sprintf(
129
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
130
+
esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ),
self::_renderSectionDescription( '<span class="viz-gvlink">' . sprintf( __( 'Configure the graph by providing configuration variables right from the %1$sGoogle Visualization API%2$s. You can refer to to some examples %3$shere%4$s.', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/gallery/?#configuration-options" target="_blank">', '</a>', '<a href="https://docs.themeisle.com/article/728-manual-configuration" target="_blank">', '</a>' ) . '</span>' );
142
+
self::_renderSectionDescription(
143
+
'<span class="viz-gvlink">' . sprintf(
144
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag, %3$s - HTML link tag, %4$s - HTML closing link tag.
145
+
__( 'Configure the graph by providing configuration variables right from the %1$sGoogle Visualization API%2$s. You can refer to to some examples %3$shere%4$s.', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/gallery/?#configuration-options" target="_blank">',
sprintf( 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' ), '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', '</a>' ),
478
+
sprintf(
479
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
480
+
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' ),
sprintf( esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU date and time format%2$s.', 'visualizer' ), '<a href="https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax" target="_blank">', '</a>' ),
494
+
sprintf(
495
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
496
+
esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU date and time format%2$s.', 'visualizer' ),
Copy file name to clipboardExpand all lines: classes/Visualizer/Render/Sidebar/ChartJS.php
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,12 @@ protected function _renderChartTitleSettings() {
180
180
esc_html__( 'Chart Description', 'visualizer' ),
181
181
'description',
182
182
$this->description,
183
-
sprintf( esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ), '<a href="https://developers.google.com/search/docs/data-types/dataset#dataset" target="_blank">', '</a>' )
183
+
sprintf(
184
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag.
185
+
esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ),
self::_renderSectionDescription( '<span class="viz-gvlink">' . sprintf( __( 'Configure the graph by providing configuration variables right from the %1$sChartJS API%2$s. You can refer to to some examples %3$shere%4$s.', 'visualizer' ), '<a href="https://www.chartjs.org/docs/latest/configuration/" target="_blank">', '</a>', '<a href="https://docs.themeisle.com/article/728-manual-configuration" target="_blank">', '</a>' ) . '</span>' );
395
+
self::_renderSectionDescription(
396
+
'<span class="viz-gvlink">' . sprintf(
397
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag, %3$s - HTML link tag, %4$s - HTML closing link tag.
398
+
__( 'Configure the graph by providing configuration variables right from the %1$sChartJS API%2$s. You can refer to to some examples %3$shere%4$s.', 'visualizer' ),
sprintf( esc_html__( 'Determines whether the series has to be used for a special role as mentioned in %1$shere%2$s. You can view a few examples %3$shere%4$s.', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/roles#what-roles-are-available" target="_blank">', '</a>', '<a href="https://docs.themeisle.com/article/1160-roles-for-series-visualizer" target="_blank">', '</a>' )
155
+
sprintf(
156
+
// translators: %1$s - HTML link tag, %2$s - HTML closing link tag, %3$s - HTML link tag, %4$s - HTML closing link tag
157
+
esc_html__( 'Determines whether the series has to be used for a special role as mentioned in %1$shere%2$s. You can view a few examples %3$shere%4$s.', 'visualizer' ),
0 commit comments