Esempio n. 1
0
                <td>&nbsp;</td>
                <td valign="top">
                    <table class="table table-bordered">
                        <tr>
                            <th colspan="2" align="left"><?php 
    echo $usr_strings['Appearance'];
    ?>
</th>
                        </tr>
                        <tr>
                            <td><?php 
    echo $usr_strings['Language'];
    ?>
</td>
                            <td align="right"><?php 
    echo get_selectlist('usr_cust_language', get_customize_languages(), $s_cust['language']);
    ?>
</td>
                        </tr>
                    </table>
                    <table class="table table-bordered">
                        <tr>
                            <th colspan="2" align="left"><?php 
    echo $usr_strings['Attitude'];
    ?>
</th>
                        </tr>
                        <tr>
                            <td><?php 
    echo $usr_strings['AskDel'];
    ?>
// Copyright      (c) 2000, 2001, 2002, 2003, 2004 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
// Created        <03/10/02 17:13:55 lb>
//
// $Id: check_languages.php,v 1.2 2004/01/13 21:12:17 lbrueckner Exp $
include '../inc/functions.inc.php';
include '../inc/debug_funcs.inc.php';
define('PROTOTYPE', 'english');
foreach (get_customize_languages() as $language) {
    require './' . $language . '.inc.php';
    foreach (get_array_names() as $aname) {
        $string_keys[$language][$aname] = array_keys(${$aname});
    }
}
foreach (get_customize_languages() as $language) {
    if ($language == PROTOTYPE) {
        continue;
    }
    echo '<strong>' . $language . "</strong><br>\n";
    foreach (get_array_names() as $aname) {
        $diff = array_diff($string_keys[PROTOTYPE][$aname], $string_keys[$language][$aname]);
        if (!empty($diff)) {
            foreach ($diff as $key) {
                echo 'missing: ' . $key . "<br>\n";
            }
        }
        $diff = array_diff($string_keys[$language][$aname], $string_keys[PROTOTYPE][$aname]);
        if (!empty($diff)) {
            foreach ($diff as $key) {
                echo 'obsolete: ' . $key . "<br>\n";