Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of saadi ali  >  Simple Multilingualism  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Simple Multilingualism
Get application texts for multiple languages
Author: By
Last change:
Date: 2013-09-05 09:17
Size: 493 bytes
 

Contents

Class file image Download
<?
ob_start
();
include(
"language_class.php");
//  The default language of the site
$lang = new language('EN');
?>
<!DOCTYPE html>

<html>

<head>
  <title>simple multilingualism</title>
</head>

<body>
    <div>
          <a href="?language=FR">Français</a> -
          <a href="?language=EN">English</a>
    </div>
    <div>
        <? // Print Language  ?>
         <?= $lang->view('hello'?>  <br>

         <?= $lang->view('emploi'?>
    </div>
</body>
</html>