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


Class file image Download

$lang = new translate('en');

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

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

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