|
14 | 14 | <?php if ($tiny_metadata->get_compressed_count() > 0 || ($tiny_metadata->get_compressed_count() == 0 && count($uncompressed) == 0)) { ?> |
15 | 15 | <span class="message"> |
16 | 16 | <strong><?php echo $tiny_metadata->get_compressed_count() ?></strong> |
17 | | - <span><?php printf(self::translate_escape('%s compressed'), ($tiny_metadata->get_compressed_count() == 1) ? "size" : "sizes") ?></span> |
| 17 | + <span><?php printf(self::ntranslate_escape('size compressed', 'sizes compressed', $tiny_metadata->get_compressed_count())) ?></span> |
18 | 18 | </span> |
19 | 19 | <br/> |
20 | 20 | <?php } ?> |
21 | 21 |
|
22 | 22 | <?php if ($not_compressed_active > 0) { ?> |
23 | 23 | <span class="message"> |
24 | | - <?php printf(self::translate_escape('%d %s not compressed'), $not_compressed_active, ($not_compressed_active == 1) ? "size" : "sizes") ?> |
| 24 | + <?php printf(self::ntranslate_escape('%d size not compressed', '%d sizes not compressed', $not_compressed_active), $not_compressed_active) ?> |
25 | 25 | </span> |
26 | 26 | <br /> |
27 | 27 | <?php } ?> |
28 | 28 |
|
29 | 29 | <?php if ($missing > 0) { ?> |
30 | 30 | <span class="message"> |
31 | | - <?php printf(self::translate_escape('%d %s removed'), $missing, ($missing == 1) ? "file" : "files") ?> |
| 31 | + <?php printf(self::ntranslate_escape('%d file removed', '%d files removed', $missing), $missing) ?> |
32 | 32 | </span> |
33 | 33 | <br /> |
34 | 34 | <?php } ?> |
35 | 35 |
|
36 | 36 | <?php if ($modified > 0) { ?> |
37 | 37 | <span class="message"> |
38 | | - <?php printf(self::translate_escape('%d %s modified after compression'), $modified, ($modified == 1) ? "file" : "files") ?> |
| 38 | + <?php printf(self::ntranslate_escape('%d file modified after compression', '%d files modified after compression', $modified), $modified) ?> |
39 | 39 | </span> |
40 | 40 | <br /> |
41 | 41 | <?php } ?> |
42 | 42 |
|
43 | 43 | <?php if ($savings["input"] - $savings["output"]) { ?> |
44 | 44 | <span class="message"> |
45 | | - <?php printf(self::translate_escape( 'Total savings %s' ), str_replace( " ", " ", size_format($savings["input"] - $savings["output"], 1))) ?> |
| 45 | + <?php printf(self::translate_escape('Total savings %s' ), str_replace( " ", " ", size_format($savings["input"] - $savings["output"], 1))) ?> |
46 | 46 | </span> |
47 | 47 | <br /> |
48 | 48 | <?php } ?> |
|
0 commit comments