This page can be used to check what variables there are missing or there is extra compared to the
default language (English).
";
foreach ((array)$locale_files as $lang_name)
{
echo "".$lang_name."
\n";
$lang_ok = true;
foreach ((array)$global_comparison_lang_files as $glf)
{
$file = $lang_name."/".$glf;
if ( !is_file($file) )
{
echo "
File $file is missing
\n";
$lang_ok = false;
continue;
}
$compare_lang = array();
$contents = file_get_contents("$current_url?file=$file");
$compare_lang = unserialize(base64_decode($contents));
if(!is_array($compare_lang))
echo "Errors where found at $file";
$extra_lang_vars = @array_diff_key($compare_lang,$lang[$glf]);
$missing_lang_vars = @array_diff_key($lang[$glf],$compare_lang);
if(isset($extra_lang_vars['']))
unset($extra_lang_vars['']);
// If there is nothign wrong with the file lest skip it.
if ( empty($missing_lang_vars) && empty($extra_lang_vars) )
continue;
echo "
\n";
}
if ( $lang_ok )
{
echo "
Lang is $lang_name is OK.
\n";
}
else
{
echo "
Errors found from lang $lang_name.
\n";
}
echo "
\n";
}
?>