PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Kemal GENIS   Fast Multi Language   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: test file
Class: Fast Multi Language
Translate application texts using Yandex
Author: By
Last change: .
php fast translate class
Date: 2 years ago
Size: 586 bytes
 

Contents

Class file image Download
<?php
set_time_limit
(300);
require_once
"translate.class.php";
require_once
"functions.php";

$lang = new translate('en');

if (isset(
$_GET['lng']) and $_GET['lng'] != '' and $_GET['lng'] != $lang) {
   
$lang->setTranslate($_GET['lng']);
   
$_SESSION['language'] = $_GET['lng'];
}
?>
<!doctype html>

<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?=trans('Site Ba?l???') ?></title>
    <meta name="description" content="<?= trans('Site Aç?klamas?') ?>">
</head>

<body>
<h1><?= trans('?çerik konu ba?l???') ?></h1>
<p><?= trans('Merhaba dünya!') ?></p>
</body>
</html>