Changeset 7342


Ignore:
Timestamp:
Oct 22, 2010, 1:20:19 PM (10 years ago)
Author:
ddtddt
Message:

[extensions] - rv_db_integrity - add localisation

Location:
extensions/rv_db_integrity
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_db_integrity/check_db.php

    r3417 r7342  
    11<?php
    22defined('PHPWG_ROOT_PATH') or trigger_error('Hacking attempt!', E_USER_ERROR);
     3
     4load_language('plugin.lang', RVDI_PATH);
    35
    46function check_table_ref($t, $f, $reft, $reff)
     
    8890$tpl_var = array(
    8991                'ID' => 'permalinks',
    90                 'LABEL' => 'Pemalinks',
     92                'LABEL' => l10n('Pemalinks'),
    9193                'CHECKED' => isset($_POST['permalinks']) ? 'checked="checked"' : $default_checked,
    9294                'COUNT' => 1,
     
    110112$tpl_var = array(
    111113                'ID' => 'id_storage_category_id',
    112                 'LABEL' => '#images(id,storage_category_id) in #image_category',
     114                'LABEL' => l10n('#images(id,storage_category_id) in #image_category'),
    113115                'CHECKED' => isset($_POST['id_storage_category_id']) ? 'checked="checked"' : $default_checked,
    114116                'COUNT' => 1,
     
    134136$tpl_var = array(
    135137                'ID' => 'uploadable_virtual_cats',
    136                 'LABEL' => 'Uploadable virtual cats',
     138                'LABEL' => l10n('Uploadable virtual cats'),
    137139                'CHECKED' => isset($_POST['uploadable_virtual_cats']) ? 'checked="checked"' : $default_checked,
    138140                'COUNT' => 1,
  • extensions/rv_db_integrity/check_db.tpl

    r3417 r7342  
    88<table class="table2">
    99        <tr class="throw">
    10                 <td>Test</td>
    11                 <td>Result</td>
     10                <td>{'Test'|@translate}</td>
     11                <td>{'Result'|@translate}</td>
    1212        </tr>
    1313{foreach from=$reference_tests item=reference_test}
     
    2222                        <span style="color:white;background-color:red">{$reference_test.result} FAILED</span>
    2323                {else}
    24                         Passed
     24                        {'Passed'|@translate}
    2525                {/if}
    2626                {/if}
  • extensions/rv_db_integrity/main.inc.php

    r7302 r7342  
    11<?php /*
    22Plugin Name: RV DB Integrity
    3 Version: 2.0.b
     3Version: 2.1.a
    44Description: Checks database integrity. After install go to Administration /Tools/Maintenance: "Check database integrity".
    55Plugin URI: http://piwigo.org/ext/extension_view.php?eid=179
     
    88*/
    99
     10define('RVDI_DIR' , basename(dirname(__FILE__)));
     11define('RVDI_PATH' , PHPWG_PLUGINS_PATH . RVDI_DIR . '/');
     12
     13
    1014add_event_handler('get_admin_advanced_features_links', 'rvint_get_admin_advanced_features_links');
    1115
    1216function rvint_get_admin_advanced_features_links($advanced_features)
    1317{
     18  load_language('plugin.lang', RVDI_PATH);
    1419  array_push($advanced_features,
    1520    array
    1621    (
    17       'CAPTION' => 'Check database integrity',
     22      'CAPTION' => l10n('Check database integrity'),
    1823      'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/check_db.php')
    1924    ));
Note: See TracChangeset for help on using the changeset viewer.