Changeset 22375


Ignore:
Timestamp:
Apr 27, 2013, 5:35:05 PM (7 years ago)
Author:
ddtddt
Message:

[extensions] - rv_autocomplete - localisation step 1

Location:
extensions/rv_autocomplete
Files:
6 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_autocomplete/admin.php

    r22201 r22375  
    33
    44include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
     5
     6load_language('plugin.lang', RVAC_PATH);
    57
    68if (!isset($_GET['tab']))
     
    1214
    1315$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' );
    1719$tabsheet->select($page['tab']);
    1820
  • extensions/rv_autocomplete/admin/config.tpl

    r22214 r22375  
    66<form method="post">
    77<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}
    99</fieldset>
    1010</form>
     
    1212<!-- <form method="post">
    1313<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>
    1515<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>
    1717<br>
    1818
    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>
    2020<br>
    2121
    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>
    2323<br>
    2424
  • extensions/rv_autocomplete/admin/custom.tpl

    r22201 r22375  
    88<tr>
    99<td>
    10         <label for=ac_name style="min-width:100px">Query:</label>
     10        <label for=ac_name style="min-width:100px">{'Query:'|@translate}</label>
    1111</td>
    1212<td>
     
    1616<tr>
    1717<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}
    1919</small>
    2020</td>
     
    2424<tr>
    2525<td>
    26 <label for=ac_counter>Weight:</label>
     26<label for=ac_counter>{'Weight:'|@translate}</label>
    2727</td>
    2828<td>
     
    3333<tr>
    3434<td>
    35 <label for=ac_url>Url:</label>
     35<label for=ac_url>{'Url:'|@translate}</label>
    3636</td>
    3737<td>
     
    4242<tr>
    4343<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}
    4745</small>
    4846</td>
     
    5250</div>
    5351
    54 <p><a class="openAddNew">Create a new suggestion</a></p>
     52<p><a class="openAddNew">{'Create a new suggestion'|@translate}</a></p>
    5553<table id="csTable" class="table2">
    5654<thead>
    5755<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>
    6260</tr>
    6361</thead>
     
    6664</table>
    6765
    68 <p><a class="openAddNew">Create a new suggestion</a></p>
     66<p><a class="openAddNew">{'Create a new suggestion'|@translate}</a></p>
    6967
    7068{include file='include/colorbox.inc.tpl'}
  • extensions/rv_autocomplete/main.inc.php

    r22246 r22375  
    1313global $prefixeTable;
    1414define('RVAC_SUGGESTIONS', $prefixeTable.'suggestions');
     15define('RVAC_DIR' , basename(dirname(__FILE__)));
     16define('RVAC_PATH' , PHPWG_PLUGINS_PATH . RVAC_DIR . '/');
    1517
    1618function rvac_get_data_file() {
Note: See TracChangeset for help on using the changeset viewer.