Location: PHPKode > scripts > Language System > example.php
// Include the class
include 'language.class.php';

// Include config file
include 'config.php';

// Call the language instance
$language = new language(DefaultLang);

// Check if the language it's saved in cookies else try to load the default language
$loadlang = $language->check();

// Load the language

// Print's constants of the curent language
<title><?php echo Title;?></title>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<script language="JavaScript">

function loadPage(list) {

  location.href="language.php?href=<?php echo $_SERVER['PHP_SELF'];?>&lang=" + list.options[list.selectedIndex].value


<?php echo Text;?>

<select name="lang" onchange="loadPage(this.form.elements[0])"

<?php echo $language->language_options();?>

Return current item: Language System