|
51 | 51 | } elseif ( 0 == sizeof( $active_tinify_sizes ) ) { |
52 | 52 | esc_html_e( 'Based on your current settings, nothing will be optimized. There are no active sizes selected for optimization.' ); |
53 | 53 | } 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() ); |
55 | 55 | } elseif ( $stats['optimized-image-sizes'] > 0 ) { |
56 | 56 | if ( $percentage_of_files > 75 ) { |
57 | 57 | printf( esc_html__( '%s, you are doing great!', 'tiny-compress-images' ), $this->friendly_user_name() ); |
|
115 | 115 | ?> |
116 | 116 | </p> |
117 | 117 | <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>. |
120 | 126 | </p> |
121 | 127 | </div> |
122 | 128 | </div> |
|
127 | 133 | </h3> |
128 | 134 | <span id="estimated-cost">$ <?php echo number_format( $estimated_costs, 2 ) ?></span> |
129 | 135 | <div class="cost-currency">USD</div> |
130 | | - <?php if ($estimated_costs > 0): ?> |
| 136 | + <?php if ( $estimated_costs > 0 ) { ?> |
131 | 137 | <div class="tooltip"> |
132 | 138 | <span class="dashicons dashicons-info"></span> |
133 | 139 | <div class="tip"> |
134 | 140 | <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> |
137 | 148 | </p> |
138 | 149 | </div> |
139 | 150 | </div> |
140 | | - <? endif; ?> |
| 151 | + <?php } ?> |
141 | 152 | </td> |
142 | 153 | </tr> |
143 | 154 | </table> |
|
0 commit comments