PHP Classes
elePHPant
Icontem

File: Example-2.php

Recommend this page to a friend!
  Classes of Jake Bown  >  PHP Multilang  >  Example-2.php  >  Download  
File: Example-2.php
Role: Example script
Content type: text/plain
Description: Example #2
Class: PHP Multilang
Get translated application texts for languages
Author: By
Last change: Extension added
Date: 4 years ago
Size: 368 bytes
 

Contents

Class file image Download
<?php include("multilang.php"); if(isset($_GET['language']) && $_GET['language'] == "de") {$i = new multilang("de");} else {$i = new multilang("en");} ?>
<!DOCTYPE html>
<meta charset="UTF-8">
<html>
<head>
    <title>Define by GET</title>
</head>
<body>
<h1><?= $i->say("example_header"); ?></h1>
<p><?= $i->say("example_define_get"); ?></p>

</body>
</html>