Changeset 22375 for extensions/rv_autocomplete
- Timestamp:
- Apr 27, 2013, 5:35:05 PM (11 years ago)
- Location:
- extensions/rv_autocomplete
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_autocomplete/admin.php
r22201 r22375 3 3 4 4 include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); 5 6 load_language('plugin.lang', RVAC_PATH); 5 7 6 8 if (!isset($_GET['tab'])) … … 12 14 13 15 $tabsheet = new tabsheet(); 14 $tabsheet->add( 'config', 'Configuration', $my_base_url.'-config');15 $tabsheet->add( 'exclude', 'Exclude', $my_base_url.'-exclude' );16 $tabsheet->add( 'custom', 'Custom', $my_base_url.'-custom' );16 $tabsheet->add( 'config', l10n('Configuration'), $my_base_url.'-config'); 17 $tabsheet->add( 'exclude', l10n('Exclude'), $my_base_url.'-exclude' ); 18 $tabsheet->add( 'custom', l10n('Custom'), $my_base_url.'-custom' ); 17 19 $tabsheet->select($page['tab']); 18 20 -
extensions/rv_autocomplete/admin/config.tpl
r22214 r22375 6 6 <form method="post"> 7 7 <fieldset> 8 If you change album/tag names or permalink you might want to <input type="submit" name="invalidateAc" value="Invalidate auto completion index cache">. (Auto completions are automatically invalidated on uploads, permission changes ...). 8 {'If you change album/tag names or permalink you might want to'|@translate} <input type="submit" name="invalidateAc" value="{'Invalidate auto completion index cache'|@translate}">. {'(Auto completions are automatically invalidated on uploads, permission changes ...).'|@translate} 9 9 </fieldset> 10 10 </form> … … 12 12 <!-- <form method="post"> 13 13 <fieldset> 14 <label> Ideal number of suggestions<input type="text" size="2" name="" value="5" readonly></label>14 <label>{'Ideal number of suggestions'|@translate} <input type="text" size="2" name="" value="5" readonly></label> 15 15 <br> 16 <label> Maximum number of suggestions<input type="text" size="2" name="" value="10" readonly></label>16 <label>{'Maximum number of suggestions'|@translate} <input type="text" size="2" name="" value="10" readonly></label> 17 17 <br> 18 18 19 <label> Look for matches in other languages if the number of matches in main language is less than<input type="text" size="2" name="" value="2" readonly></label>19 <label>{'Look for matches in other languages if the number of matches in main language is less than'|@translate} <input type="text" size="2" name="" value="2" readonly></label> 20 20 <br> 21 21 22 <label> Stop accumulating matches after <input type="text" size="2" name="" value="100" readonly> positive matches</label>22 <label>{'Stop accumulating matches after'|@translate} <input type="text" size="2" name="" value="100" readonly> {'positive matches'|@translate}</label> 23 23 <br> 24 24 -
extensions/rv_autocomplete/admin/custom.tpl
r22201 r22375 8 8 <tr> 9 9 <td> 10 <label for=ac_name style="min-width:100px"> Query:</label>10 <label for=ac_name style="min-width:100px">{'Query:'|@translate}</label> 11 11 </td> 12 12 <td> … … 16 16 <tr> 17 17 <td colspan=2> 18 <small> Use <b>\</b> to break search (e.g. Central Park\, NY will not match NY but it will display it)18 <small>{'Use <b>\</b> to break search (e.g. Central Park\, NY will not match NY but it will display it)'|@translate} 19 19 </small> 20 20 </td> … … 24 24 <tr> 25 25 <td> 26 <label for=ac_counter> Weight:</label>26 <label for=ac_counter>{'Weight:'|@translate}</label> 27 27 </td> 28 28 <td> … … 33 33 <tr> 34 34 <td> 35 <label for=ac_url> Url:</label>35 <label for=ac_url>{'Url:'|@translate}</label> 36 36 </td> 37 37 <td> … … 42 42 <tr> 43 43 <td colspan=2> 44 <small>Leave empty for automatic gallery search <br> 45 OR enter an url ($r/ at the start of url means this gallery)<br> 46 OR enter q=Term to search for a specific term 44 <small>{'Leave empty for automatic gallery search <br>OR enter an url ($r/ at the start of url means this gallery)<br>OR enter q=Term to search for a specific term'|@translate} 47 45 </small> 48 46 </td> … … 52 50 </div> 53 51 54 <p><a class="openAddNew"> Create a new suggestion</a></p>52 <p><a class="openAddNew">{'Create a new suggestion'|@translate}</a></p> 55 53 <table id="csTable" class="table2"> 56 54 <thead> 57 55 <tr class="throw"> 58 <th> Name</th>59 <th> Weight</th>60 <th> URL</th>61 <th> Actions</th>56 <th>{'Name'|@translate}</th> 57 <th>{'Weight'|@translate}</th> 58 <th>{'URL'|@translate}</th> 59 <th>{'Actions'|@translate}</th> 62 60 </tr> 63 61 </thead> … … 66 64 </table> 67 65 68 <p><a class="openAddNew"> Create a new suggestion</a></p>66 <p><a class="openAddNew">{'Create a new suggestion'|@translate}</a></p> 69 67 70 68 {include file='include/colorbox.inc.tpl'} -
extensions/rv_autocomplete/main.inc.php
r22246 r22375 13 13 global $prefixeTable; 14 14 define('RVAC_SUGGESTIONS', $prefixeTable.'suggestions'); 15 define('RVAC_DIR' , basename(dirname(__FILE__))); 16 define('RVAC_PATH' , PHPWG_PLUGINS_PATH . RVAC_DIR . '/'); 15 17 16 18 function rvac_get_data_file() {
Note: See TracChangeset
for help on using the changeset viewer.