source: extensions/plugin_lang_analysis/template/select.tpl @ 25677

Last change on this file since 25677 was 25677, checked in by mistic100, 10 years ago

compatible with new l10n

File size: 2.8 KB
Line 
1{footer_script}
2$('form#pla').submit(function() {
3  window.location.href = $(this).attr('action') + '&plugin_id=' + $(this).find('select').val();
4  return false;
5});
6{/footer_script}
7
8<form method="GET" action="{$F_ACTION}" class="properties" id="pla">
9<fieldset>
10  <legend>{'Select a plugin'|@translate}</legend>
11 
12  <select name="plugin_id">
13  {foreach from=$PLA_PLUGINS item=plugin key=plugin_id}
14    <option value="{$plugin_id}">{$plugin.name} ({$plugin.version})</option>
15  {/foreach}
16  </select>
17
18  <p class="formButtons"><input type="submit" value="{'Continue'|@translate}"></p>
19</fieldset>
20
21<fieldset>
22  <legend>{'How to use?'|@translate}</legend>
23
24  <p>
25    This tool analyses each file of the selected plugin, searching for <b>l10n</b>, <b>l10n_dec</b> and <b>translate</b> functions.<br>
26    Then it compares the matched strings to the content of the plugin's language files and the common and admin core language files.<br>
27    Each file of the plugin can be configured as <b>Common</b> (public) or <b>Admin</b> and can be attached to one or more plugin's language files.<br>
28    <br>
29    When the analysis is complete, each string can have one of these three status :
30  </p>
31 
32  <dl style="margin-left:30px;">
33    <dt class="iconpla-attention">missing :</dt>
34    <dd>
35      not in the plugin language file<br>
36      <b>AND</b> not in the common language file<br>
37      <b>AND</b> (<br>
38      &nbsp;&nbsp;&nbsp;&nbsp;belonging to at least one common file<br>
39      &nbsp;&nbsp;&nbsp;&nbsp;<b>OR</b> not in the admin language file<br>
40      )
41    </dd>
42 
43    <dt class="iconpla-attention-circled">useless :</dt>
44    <dd>
45      in the plugin language file<br>
46      <b>AND</b> (<br>
47      &nbsp;&nbsp;&nbsp;&nbsp;in the common language file<br>
48      &nbsp;&nbsp;&nbsp;&nbsp;<b>OR</b> (<br>
49      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not belonging to any common file<br>
50      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>AND</b> in the admin language file<br>
51      &nbsp;&nbsp;&nbsp;&nbsp;)<br>
52      )
53    </dd>
54 
55    <dt class="iconpla-ok-squared">ok :</dt>
56    <dd>
57      any other case
58    </dd>
59  </dl>
60 
61  <p>
62    You can click the <span class="iconpla-plus-circled"></span> icon on the left of each string to see in which files it is used. Additionally you can see if the string is missing in only one or all files (corresponding to a problem in the loaded language files.
63  </p>
64</fieldset>
65
66<fieldset>
67  <legend>{'Limitations'|@translate}</legend>
68 
69  <p>
70    For both core and plugin dependencies, we assume that the language files are loaded at the beginning of the file and available for the whole file. In practice this is not true because of functions, triggers, pre-filters, etc.
71  </p>
72</fieldset>
73</form>
Note: See TracBrowser for help on using the repository browser.