new image show system, allowing dynamic preview images
This commit is contained in:
parent
b4e6c2f9bb
commit
dfda07ae1c
8 changed files with 193 additions and 53 deletions
|
|
@ -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;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue