PluginProbe ʕ •ᴥ•ʔ
Loco Translate / 1.5.6
Loco Translate v1.5.6
2.8.5 2.8.4 2.5.8 2.6.0 2.6.1 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0 2.8.1 2.8.2 2.8.3 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2 1.2.1 1.2.2 1.3 1.3.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7
loco-translate / tpl / admin-list.tpl.php
loco-translate / tpl Last commit date
admin-fscheck.tpl.php 9 years ago admin-list.tpl.php 9 years ago admin-nav.tpl.php 9 years ago admin-opts.tpl.php 9 years ago admin-poedit.tpl.php 9 years ago admin-poinit.tpl.php 9 years ago admin-root.tpl.php 9 years ago
admin-list.tpl.php
112 lines
1 <?php
2 /**
3 * List of either plugins or themes that are translatable
4 */
5 ?>
6
7 <table class="wp-list-table widefat" cellspacing="0">
8 <thead>
9 <tr>
10 <th scope="col">
11 <?php Loco::h( _x('Package details','Table header','loco-translate') )?>
12 </th>
13 <th scope="col">
14 <?php Loco::h( _x('Translations (PO)','Table header','loco-translate') )?>
15 </th>
16 <th scope="col">
17 <?php Loco::h( _x('Template (POT)','Table header','loco-translate') )?>
18 </th>
19 <th scope="col">
20 <?php Loco::h( _x('File permissions','Table header','loco-translate') )?>
21 </th>
22 </tr>
23 </thead>
24 <tbody><?php
25 /* @var $package LocoPackage */
26 foreach( $items as $package ):
27 unset($parent);
28 extract( $package->meta() );
29 $mtime = $package->get_modified();
30 $n = count( $po );
31 ?>
32 <tr class="inactive">
33 <td>
34 <ul class="loco-details">
35 <li title="<?php Loco::h($domain)?>">
36 <strong><?php Loco::h($package->get_name())?></strong>
37 </li><?php
38 if( isset($parent) ):?>
39 <li>
40 <?php Loco::h( __('Extends: %s','loco-translate'), $parent ) ?>
41 </li><?php
42 endif?>
43 <li><?php
44 Loco::h( _n( '1 language', '%u languages', $n, 'loco-translate' ), $n )?>
45 </li><?php
46 if( $mtime ):?>
47 <li class="loco-mtime">
48 <small>
49 <?php Loco::h( _x('Updated','Modified time','loco-translate') )?>
50 <?php Loco::h( LocoAdmin::format_datetime($mtime) )?>
51 </small>
52 </li><?php
53 endif?>
54 </ul>
55 </td>
56 <td>
57 <ul>
58 <li class="loco-add">
59 <?php echo LocoAdmin::msginit_link( $package, $domain )?>
60 </li><?php
61 /* @var $po_locale LocoLocale */
62 foreach( $po as $po_data ):
63 extract( $po_data, EXTR_PREFIX_ALL, 'po' );
64 $code = $po_locale->get_code();
65 $label = $code ? $code.' : '.$po_locale->get_name() : $po_name;
66 ?>
67 <li class="loco-edit-po">
68 <?php echo LocoAdmin::edit_link( $package, $po_path, $label, $po_locale->icon_class() )?>
69 <small class="loco-progress" title="<?php echo $po_stats['p']?>">
70 <?php echo $po_stats['p']?>%
71 </small>
72 </li><?php
73 endforeach;?>
74 </ul>
75 </td>
76 <td>
77 <ul><?php // show POT files (should be no more than one)
78 if( $pot ):
79 foreach( $pot as $pot_data ):
80 extract( $pot_data, EXTR_PREFIX_ALL, 'pot' );
81 ?>
82 <li class="loco-edit-pot">
83 <?php echo LocoAdmin::edit_link( $package, $pot_path )?>
84 </li><?php
85 endforeach;
86 else:?>
87 <li class="loco-add">
88 <?php echo LocoAdmin::xgettext_link( $package )?>
89 </li><?php
90 endif?>
91 </ul>
92 </td>
93 <td>
94 <ul><?php
95 try {
96 $package->check_permissions();?>
97 <li class="loco-ok">
98 <?php echo LocoAdmin::fscheck_link( $package, $domain, _x('OK','Message label','loco-translate') )?>
99 </li><?php
100 }
101 catch( Exception $Ex ){?>
102 <li class="loco-warning">
103 <?php echo LocoAdmin::fscheck_link( $package, $domain, $Ex->getMessage() )?>
104 </li><?php
105 }?>
106 </ul>
107 </td>
108 </tr><?php
109 endforeach?>
110 </tbody>
111 </table>
112