Skip to content

Commit 802b145

Browse files
Fix translations: issues after autoformat
1 parent 3b6e9d2 commit 802b145

8 files changed

+19
-19
lines changed

src/class-tiny-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,9 @@ public function render_size_checkboxes_description(
618618
'strong' => array(),
619619
);
620620

621-
/* translators: %1$s: number of images */
622621
printf(
623622
wp_kses(
623+
/* translators: %1$s: number of images */
624624
__(
625625
'With these settings you can compress <strong>at least %1$s images</strong> for free each month.', // WPCS: Needed for proper translation.
626626
'tiny-compress-images'

src/views/account-status-connected.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
$compressions = self::get_compression_count();
3131
$remaining_credits = self::get_remaining_credits();
3232
if ( self::is_on_free_plan() ) {
33-
/* translators: %s: number of remaining credits */
3433
printf(
3534
wp_kses(
35+
/* translators: %s: number of remaining credits */
3636
__(
3737
'You are on a <strong>free plan</strong> with <strong>%s compressions left</strong> this month.', // WPCS: Needed for proper translation.
3838
'tiny-compress-images'
@@ -42,8 +42,8 @@
4242
$remaining_credits
4343
);
4444
} elseif ( ! $status->pending ) {
45-
/* translators: %s: number of compressions */
4645
printf(
46+
/* translators: %s: number of compressions */
4747
esc_html__(
4848
'You have made %s compressions this month.',
4949
'tiny-compress-images'
@@ -67,8 +67,8 @@
6767
<p>
6868
<?php
6969
if ( defined( 'TINY_API_KEY' ) ) {
70-
/* translators: %s: wp-config.php */
7170
echo sprintf(
71+
/* translators: %s: wp-config.php */
7272
esc_html__(
7373
'The API key has been configured in %s',
7474
'tiny-compress-images'
@@ -88,8 +88,8 @@
8888
'<a href="https://tinypng.com/dashboard/api" target="_blank">%s</a>',
8989
esc_html__( 'API dashboard', 'tiny-compress-images' )
9090
);
91-
/* translators: %s: link saying API dashboard */
9291
printf(
92+
/* translators: %s: link saying API dashboard */
9393
esc_html__(
9494
'Enter your API key. If you have lost your key, go to your %s to retrieve it.',
9595
'tiny-compress-images'

src/views/account-status-create-advanced.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
'<a href="https://tinypng.com/dashboard/api" target="_blank">%s</a>',
4848
esc_html__( 'API dashboard', 'tiny-compress-images' )
4949
);
50-
/* translators: %s: link saying API dashboard */
5150
printf(
51+
/* translators: %s: link saying API dashboard */
5252
esc_html__(
5353
'Enter your API key. Go to your %s to retrieve it.',
5454
'tiny-compress-images'

src/views/account-status-create-simple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
esc_html_e( 'Enter your API key.', 'tiny-compress-images' );
1212
echo ' ';
1313

14-
/* translators: %s: link saying TinyPNG developer section */
1514
printf(
15+
/* translators: %s: link saying TinyPNG developer section */
1616
esc_html__(
1717
'If needed you can go to the %s to retrieve it.',
1818
'tiny-compress-images'

src/views/bulk-optimization-upgrade-notice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
$strong = array(
66
'strong' => array(),
77
);
8-
/* translators: %s: number of remaining credits */
98
printf(
109
wp_kses(
10+
/* translators: %s: number of remaining credits */
1111
__(
1212
'You are on a <strong>free plan</strong> with <strong>%s compressions left</strong> this month.', // WPCS: Needed for proper translation.
1313
'tiny-compress-images'

src/views/bulk-optimization.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116
<?php if ( $stats['uploaded-images'] > 0 && sizeof( $active_tinify_sizes ) > 0 && $stats['available-unoptimized-sizes'] > 0 ) { ?>
117117
<p>
118118
<?php
119-
/* translators: %1$s: number of sizes that can be optimised, %2$s number of images */
120119
printf(
120+
/* translators: %1$s: number of sizes that can be optimised, %2$s number of images */
121121
esc_html__(
122122
'With your current settings you can still optimize %1$s image sizes from your %2$s uploaded JPEG, PNG, and WebP images.',
123123
'tiny-compress-images'
@@ -150,9 +150,9 @@
150150
<p>
151151
<?php if ( sizeof( $active_tinify_sizes ) > 0 ) { ?>
152152
<?php
153-
/* translators: %d: number of sizes to be compressed */
154153
printf(
155154
wp_kses(
155+
/* translators: %d: number of sizes to be compressed */
156156
_n( 'For each uploaded image <strong>%d size</strong> is optimized.', 'For each uploaded image <strong>%d sizes</strong> are optimized.', count( $active_tinify_sizes ), 'tiny-compress-images' ),
157157
array(
158158
'strong' => array(),
@@ -163,9 +163,9 @@
163163
?>
164164
<?php } ?>
165165
<?php
166-
/* translators: %s: link to settings page saying here */
167166
printf(
168167
wp_kses(
168+
/* translators: %s: link to settings page saying here */
169169
__( 'You can change these settings %s.', 'tiny-compress-images' ),
170170
array(
171171
'a' => array(
@@ -199,9 +199,9 @@
199199
<div class="tip">
200200
<p>
201201
<?php
202-
/* translators: %1$d %2$s: number of image sizes, %3$s: link saying upgrade here */
203202
printf(
204203
wp_kses(
204+
/* translators: %1$d %2$s: number of image sizes, %3$s: link saying upgrade here */
205205
__( 'If you wish to compress more than <strong>%1$d %2$s</strong> a month and you are still on a free account %3$s.', 'tiny-compress-images' ),
206206
array(
207207
'strong' => array(),
@@ -224,9 +224,9 @@
224224
</table>
225225
<div class="notes">
226226
<?php
227-
/* translators: %s: link to settings page saying here */
228227
printf(
229228
wp_kses(
229+
/* translators: %s: link to settings page saying here */
230230
__( 'Configure compression settings %s.', 'tiny-compress-images' ),
231231
array(
232232
'a' => array(
@@ -303,7 +303,7 @@
303303
require_once dirname( __FILE__ ) . '/bulk-optimization-upgrade-notice.php';
304304
}
305305
?>
306-
</div>
306+
</div>
307307
<script type="text/javascript">
308308
<?php echo 'jQuery(function() { bulkOptimization(' . json_encode( $stats['available-for-optimization'] ) . ')})'; ?>
309309
</script>

src/views/compress-details.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
<?php if ( $total['has_been_compressed'] > 0 || ( 0 == $total['has_been_compressed'] && 0 == $available_uncompressed_sizes ) ) { ?>
4040
<span class="message">
4141
<?php
42-
/* translators: %d: number of compressed sizes */
4342
printf(
4443
wp_kses(
44+
/* translators: %d: number of compressed sizes */
4545
_n( '<strong>%d</strong> size compressed', '<strong>%d</strong> sizes compressed', $total['has_been_compressed'], 'tiny-compress-images' ),
4646
array(
4747
'strong' => array(),
@@ -68,9 +68,9 @@
6868
?>
6969
<span class="message">
7070
<?php
71-
/* translators: %d: number of compressed sizes */
7271
printf(
7372
wp_kses(
73+
/* translators: %d: number of compressed sizes */
7474
_n( '<strong>%d</strong> size converted', '<strong>%d</strong> sizes converted', $total['has_been_converted'], 'tiny-compress-images' ),
7575
array(
7676
'strong' => array(),

src/views/dashboard-widget.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
/* translators: %s: friendly user name */
2828
printf( esc_html__( 'Hi %s, you haven’t compressed any images in your media library.', 'tiny-compress-images' ), $this->friendly_user_name() );
2929
echo ' ';
30-
/* translators: %s: bulk optimization page */
3130
printf(
3231
wp_kses(
32+
/* translators: %s: bulk optimization page */
3333
__( 'If you like you can to optimize your whole library in one go with the %s page.', 'tiny-compress-images' ),
3434
array(
3535
'a' => array(
@@ -51,9 +51,9 @@
5151
/* translators: %s: number of optimizable sizes and number of uploaded images */
5252
printf( esc_html__( 'With your current settings you can still optimize %1$s image sizes from your %2$s uploaded JPEG, PNG, and WebP images.', 'tiny-compress-images' ), '<span id="unoptimized-sizes"></span>', '<span id="uploaded-images"></span>' );
5353
echo ' ';
54-
/* translators: %s: bulk optimization link */
5554
printf(
5655
wp_kses(
56+
/* translators: %s: bulk optimization link */
5757
__( 'Start the %s to optimize the remainder of your library.', 'tiny-compress-images' ),
5858
array(
5959
'a' => array(
@@ -79,9 +79,9 @@
7979
<div class="description" id="ie8-compressed">
8080
<p>
8181
<?php
82-
/* translators: %s: savings percentage */
8382
printf(
8483
wp_kses(
84+
/* translators: %s: savings percentage */
8585
__( 'You have <strong>saved %s</strong> of your media library size.', 'tiny-compress-images' ),
8686
array(
8787
'span' => array(),

0 commit comments

Comments
 (0)