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
<div class="notice notice-error is-dismissible"><p>Sorry, something went wrong in trying to retrieve your stats from WordPress.com. Please check whether your API key and blog URL are correct.</p></div>
24
+
<div class="notice notice-error is-dismissible"><p><?phpesc_html_e( 'Sorry, something went wrong in trying to retrieve your stats from WordPress.com. Please check whether your API key and blog URL are correct.', 'koko-analytics' ); ?></p></div>
<div class="notice notice-success is-dismissible"><p>Big success! Your stats are now imported into Koko Analytics.</p></div>
28
+
<div class="notice notice-success is-dismissible"><p><?phpesc_html_e( 'Big success! Your stats are now imported into Koko Analytics.', 'koko-analytics' ); ?></p></div>
29
29
<?php } ?>
30
30
31
-
<h1>Import analytics from JetPack Stats</h1>
32
-
<p>To import your historical analytics data from JetPack Stats into Koko Analytics, provide your WordPress.com API key and blog URL in the field below.</p>
31
+
<h1><?phpesc_html_e( 'Import analytics from JetPack Stats', 'koko-analytics' ); ?></h1>
32
+
<p><?phpesc_html_e( 'To import your historical analytics data from JetPack Stats into Koko Analytics, provide your WordPress.com API key and blog URL in the field below.', 'koko-analytics' ); ?></p>
33
33
34
-
<form method="post" onsubmit="return confirm('Are you sure you want to import statistics between ' + this['date-start'].value + 'and ' +this['date-end'].value + '? This will overwrite any existing data in your Koko Analytics database tables.');" action="<?phpechoesc_attr(get_admin_url(null, '/index.php?page=koko-analytics&tab=jetpack_importer')); ?>">
34
+
<form method="post" onsubmit="return confirm('<?phpesc_attr_e('Are you sure you want to import statistics between', 'koko-analytics'); ?> ' + this['date-start'].value + '<?phpesc_attr_e('and ', 'koko-analytics'); ?>' + this['date-end'].value + '<?phpesc_attr_e('? This will overwrite any existing data in your Koko Analytics database tables.', 'koko-analytics'); ?>');" action="<?phpechoesc_url(admin_url('index.php?page=koko-analytics&tab=jetpack_importer')); ?>">
<p class="description">You can <a href="https://apikey.wordpress.com/">find your WordPress.com API key here</a>.</p>
44
+
<p class="description"><?phpprintf(esc_html__( 'You can %1$sfind your WordPress.com API key here%2$s.', 'koko-analytics' ),'<a href="https://apikey.wordpress.com/" target="_blank">','</a>'); ?></p>
<p class="description">The earliest date for which to import data. You should probably set this to the date that you installed and activated Jetpack Stats.</p>
60
+
<p class="description"><?phpesc_html_e( 'The earliest date for which to import data. You should probably set this to the date that you installed and activated Jetpack Stats.', 'koko-analytics' ); ?></p>
<p class="description">The last date for which to import data. You should probably set this to just before the date that you installed and activated Koko Analytics.</p>
69
+
<p class="description"><?phpesc_html_e( 'The last date for which to import data. You should probably set this to just before the date that you installed and activated Koko Analytics.', 'koko-analytics' ); ?></p>
<p>Importing data for a given date range will add to any existing data. The import process can not be reverted unless you reinstate a back-up of your database in its current state.</p>
83
-
<p>It's also important to know that JetPack doesn't provide data for the distinct number of visitors, so the data imported will only import the total number of pageviews for each post and therefore differ slightly from data collected by Koko Analytics itself.</p>
81
+
<h3><?phpesc_html_e( 'Things to know before running the import', 'koko-analytics' ); ?></h3>
82
+
<p><?phpesc_html_e( 'Importing data for a given date range will add to any existing data. The import process can not be reverted unless you reinstate a back-up of your database in its current state.', 'koko-analytics' ); ?></p>
83
+
<p><?phpesc_html_e( 'It\'s also important to know that JetPack doesn\'t provide data for the distinct number of visitors, so the data imported will only import the total number of pageviews for each post and therefore differ slightly from data collected by Koko Analytics itself.', 'koko-analytics' ); ?></p>
84
84
</div>
85
85
</div>
86
86
<?php
@@ -193,10 +193,14 @@ public function import_chunk(): void
<p>Importing stats between <strong><?phpecho$chunk_start->format('Y-m-d'); ?></strong> and <strong><?phpecho$chunk_end->format('Y-m-d'); ?></strong>.</p>
198
-
<p>Please do not close this browser tab while the importer is running.</p>
199
-
<p>Estimated time left: <?phpechoround($chunks_left * 1.5); ?> seconds.</p>
196
+
<h1><?phpesc_html_e( 'Liberating your data... Please wait.', 'koko-analytics' ); ?></h1>
197
+
<p><?phpprintf(
198
+
__('Importing stats between %1$s and %2$s.', 'koko-analytics'),
@@ -108,18 +108,18 @@ public function form($instance)
108
108
</p>
109
109
110
110
<p>
111
-
<label for="<?phpecho$this->get_field_id('days'); ?>" style="display: block;"><?phpechoesc_html__('Number of days to use statistics for:', 'koko-analytics'); ?></label>
111
+
<label for="<?phpecho$this->get_field_id('days'); ?>" style="display: block;"><?phpesc_html_e('Number of days to use statistics for:', 'koko-analytics'); ?></label>
0 commit comments