Skip to content

Commit ffd7990

Browse files
Minor fixes + added translation.
1 parent 61ae111 commit ffd7990

2 files changed

Lines changed: 19 additions & 8 deletions

File tree

src/css/bulk-optimization.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ div.tiny-bulk-optimization div.optimize div.progressbar div.progress {
261261
}
262262
}
263263

264-
div.tiny-bulk-optimization > div.dashboard > div.statistics td.item.costs > div.cost-currency {
264+
#tiny-bulk-optimization > div.dashboard > div.statistics td.item.costs > div.cost-currency {
265265
display: inline-block;
266266
}
267267

src/views/bulk-optimization.php

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
} elseif ( 0 == sizeof( $active_tinify_sizes ) ) {
5252
esc_html_e( 'Based on your current settings, nothing will be optimized. There are no active sizes selected for optimization.' );
5353
} elseif ( 0 == $stats['available-unoptimised-sizes'] ) {
54-
printf( esc_html__( '%s, this is great! Your entire library is optimimized!' ), $this->friendly_user_name() );
54+
printf( esc_html__( '%s, this is great! Your entire library is optimized!' ), $this->friendly_user_name() );
5555
} elseif ( $stats['optimized-image-sizes'] > 0 ) {
5656
if ( $percentage_of_files > 75 ) {
5757
printf( esc_html__( '%s, you are doing great!', 'tiny-compress-images' ), $this->friendly_user_name() );
@@ -115,8 +115,14 @@
115115
?>
116116
</p>
117117
<p>
118-
For each uploaded image, <b> <?php echo sizeof( $active_tinify_sizes ) ?> image sizes </b>are compressed. You can changed these settings
119-
<a href="/wp-admin/options-media.php#tiny-compress-images">here</a>.
118+
<?php esc_html_e( 'For each uploaded image, ', 'tiny-compress-images' ) ?>
119+
<strong>
120+
<?php echo sizeof( $active_tinify_sizes ) ?>
121+
<?php sizeof( $active_tinify_sizes ) > 1 ? esc_html_e( 'sizes', 'tiny-compress-images' ) : esc_html_e( 'size', 'tiny-compress-images' ) ?>
122+
</strong>
123+
<?php sizeof( $active_tinify_sizes ) > 1 ? esc_html_e( 'are compressed.', 'tiny-compress-images' ) : esc_html_e( 'is compressed.', 'tiny-compress-images' ) ?>
124+
<?php esc_html_e( 'You can changed these settings', 'tiny-compress-images' ) ?>
125+
<a href="/wp-admin/options-media.php#tiny-compress-images"><?php esc_html_e( 'here', 'tiny-compress-images' )?></a>.
120126
</p>
121127
</div>
122128
</div>
@@ -127,17 +133,22 @@
127133
</h3>
128134
<span id="estimated-cost">$ <?php echo number_format( $estimated_costs, 2 ) ?></span>
129135
<div class="cost-currency">USD</div>
130-
<?php if ($estimated_costs > 0): ?>
136+
<?php if ( $estimated_costs > 0 ) { ?>
131137
<div class="tooltip">
132138
<span class="dashicons dashicons-info"></span>
133139
<div class="tip">
134140
<p>
135-
If you wish to compress more than <b>500 image sizes</b> a month and you are still on a free account
136-
<a href="https://tinypng.com/developers">upgrade here.</a>
141+
<?php esc_html_e( 'If you wish to compress more than ', 'tiny-compress-images' ) ?>
142+
<strong>
143+
<?php echo Tiny_Config::MONTHLY_FREE_COMPRESSIONS ?>
144+
<?php esc_html_e( 'image sizes', 'tiny-compress-images' ) ?>
145+
</strong>
146+
<?php esc_html_e( 'a month and you are still on a free account', 'tiny-compress-images' ) ?>
147+
<a href="https://tinypng.com/developers"><?php esc_html_e( 'upgrade here.', 'tiny-compress-images' ) ?></a>
137148
</p>
138149
</div>
139150
</div>
140-
<? endif; ?>
151+
<?php } ?>
141152
</td>
142153
</tr>
143154
</table>

0 commit comments

Comments
 (0)