예제 #1
0
    var $Dictionary;
    // Constructor
    function FauxContext()
    {
        $this->Dictionary = array();
    }
    function GetDefinition($Code)
    {
        if (array_key_exists($Code, $this->Dictionary)) {
            return $this->Dictionary[$Code];
        } else {
            return $Code;
        }
    }
}
$Context = new FauxContext();
header('content-type: text/html; charset=' . $Configuration['CHARSET']);
// DEFINE THE LANGUAGE DICTIONARY
include $Configuration['LANGUAGES_PATH'] . $Configuration['LANGUAGE'] . '/definitions.php';
include $Configuration['APPLICATION_PATH'] . 'conf/language.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
echo $Context->GetDefinition('XMLLang');
?>
">
<head>
<title><?php 
echo $Context->GetDefinition('TermsOfService');
?>
</title>
예제 #2
0
    var $Dictionary;
    // Constructor
    function FauxContext()
    {
        $this->Dictionary = array();
    }
    function GetDefinition($Code)
    {
        if (array_key_exists($Code, $this->Dictionary)) {
            return $this->Dictionary[$Code];
        } else {
            return $Code;
        }
    }
}
$Context = new FauxContext();
// DEFINE THE LANGUAGE DICTIONARY
include $Configuration['LANGUAGES_PATH'] . $Configuration['LANGUAGE'] . '/definitions.php';
include $Configuration['APPLICATION_PATH'] . 'conf/language.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-ca">
<head>
<title><?php 
echo $Context->GetDefinition("TermsOfService");
?>
</title>
<style type="text/css">
body { 
	background: #ffffff; 
	margin: 10px;