Skip to content

Commit a796fed

Browse files
committed
added legend
1 parent 6431572 commit a796fed

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

admin/devtools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
foreach ($moduleConstants as $constKey) {
9494
$foundMod = 0;
9595
$first = '';
96-
$foundLang = '';
96+
$foundLang = 'not defined';
9797
//search for complete string
9898
foreach($modfiles as $modfile) {
9999
if( strpos(file_get_contents($modfile),$constKey) !== false) {

language/english/admin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,3 +428,8 @@
428428
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_MODULE', 'Select module to check');
429429
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_DESC', 'This tool takes all language defines in folder /language/englisch of your module and check, whether it is used somewhere or not');
430430
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_RESULTS', 'Result of checking usage of language defines of your modules');
431+
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_FILE', 'File with language defines:');
432+
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_LEGEND', 'Legend of results:');
433+
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_SUCCESS', 'Language define found');
434+
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_SUCCESS_DESCR', '(first match in brackets)');
435+
\define('_AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_FAILED', 'Language define not found');

templates/admin/modulebuilder_devtools.tpl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,22 @@
2626
<div class="row">
2727
<div class="col-xs-12">
2828
<h3 class='center'><{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULTS}></h3>
29+
<div class="col-xs-12" style="margin-bottom:50px;font-size:80%">
30+
<p><{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_LEGEND}></p>
31+
<p>
32+
<img src="<{$modPathIcon16}>/1.png" alt="<{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_SUCCESS}>"/>
33+
<{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_SUCCESS}> <{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_SUCCESS_DESCR}>
34+
</p>
35+
<p>
36+
<img src="<{$modPathIcon16}>/0.png" alt="<{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_FAILED}>"/>
37+
<{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_FAILED}>
38+
</p>
39+
</div>
2940
<{foreach item=clresultfile from=$clresults key=key}>
30-
<p><{$key}></p>
41+
<p><{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_FILE}> <{$key}></p>
3142
<ul>
3243
<{foreach item=clresult from=$clresultfile}>
33-
<li><img src="<{$modPathIcon16}>/<{$clresult.found}>.png" alt=""/> <{$clresult.define}> <{if $clresult.first}>(<{$clresult.first}>)<{/if}></li>
44+
<li><img src="<{$modPathIcon16}>/<{$clresult.found}>.png" alt="<{if $clresult.first}><{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_SUCCESS}><{else}><{$smarty.const._AM_MODULEBUILDER_DEVTOOLS_CL_RESULT_FAILED}><{/if}>"/> <{$clresult.define}> <{if $clresult.first}>(<{$clresult.first}>)<{/if}></li>
3445
<{/foreach}>
3546
</ul>
3647
<{/foreach}>

0 commit comments

Comments
 (0)