PluginProbe ʕ •ᴥ•ʔ
Loco Translate / 2.8.4
Loco Translate v2.8.4
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 / debug / debug-result.php
loco-translate / tpl / admin / debug Last commit date
debug-form.php 2 years ago debug-layout.php 1 month ago debug-result.php 2 years ago
debug-result.php
54 lines
1 <?php
2 /* @var Loco_mvc_View $this */
3
4 $this->extend('debug-form');
5 $this->start('header');
6
7 /* @var Loco_mvc_ViewParams $result */
8 if( $result->translated ):?>
9 <div class="panel panel-success">
10 <h3 class="has-icon">Translation result:</h3>
11 <p><code class="po"><?php $result->e('msgstr')?></code></p>
12 <p>
13 This is the translation value returned from the
14 <a href="<?php $result->e('calleeDoc')?>" target="_blank"><code><?php $result->e('callee')?></code></a> function.
15 </p>
16 </div><?php
17
18 else:?>
19 <div class="panel panel-warning">
20 <h3 class="has-icon">String found, but no translation returned</h3>
21 <p>
22 The <a href="<?php $result->e('calleeDoc')?>" target="_blank"><code><?php $result->e('callee')?></code></a> function
23 returned the same value as the source string. Either the string isn't translated, or the required translation file wasn't loaded.
24 </p>
25 <p>
26 See below for the exact string matches we found in your translation files.
27 </p>
28 </div><?php
29 endif;
30
31
32 /* @var Loco_mvc_ViewParams[] $matched */
33 foreach( $result->matches as $g => $matched ):
34 /* @var Loco_mvc_FileParams $group */
35 $group = $result->grouped[$g];?>
36 <div class="panel panel-info">
37 <h3>
38 <?php $group->e('type');?> translations:
39 </h3><?php
40 foreach( $matched as $file ):?>
41 <p>
42 <span class="icon icon-file"> </span>
43 <code class="path"><?php $file->e('relpath') ?></code> &rarr; <code class="po"><?php $file->e('msgstr');?></code>
44 </p><?php
45 endforeach;
46 if( $group->has('href') ):?>
47 <p>
48 <span class="icon icon-pencil"> </span>
49 <a href="<?php $group->e('href')?>">Edit PO</a>
50 </p><?php
51 endif;?>
52 </div><?php
53 endforeach;
54