new image show system, allowing dynamic preview images

This commit is contained in:
Thomas Weinhold 2020-09-26 21:32:58 +02:00
commit dfda07ae1c
8 changed files with 193 additions and 53 deletions

View file

@ -23,9 +23,9 @@ function LangSpellHtml ( $Sentence )
function LangSpell ( $Sentence )
{
global $GlobalLanguage;
$ReturnValue="";
if (file_exists("./languages/$GlobalLanguage.lng"))
$Language = file ("./languages/$GlobalLanguage.lng");
else
@ -38,17 +38,17 @@ function LangSpell ( $Sentence )
$FileSentence=explode("=",$i,2);
if ( trim( $FileSentence[0] ) == $Sentence )
{
$ReturnValue=trim($FileSentence[1]);
$ReturnValue=trim($FileSentence[1]);
break;
}
}
if (!$ReturnValue)
{
ErrorLog("[$GlobalLanguage.lng] Sentence \"$Sentence\" not found!");
$ReturnValue=$Sentence;
}
return $ReturnValue;
}
@ -65,4 +65,4 @@ function LangGetAvailableLanguages ()
}
return $ReturnValue;
}
?>
?>