<?php
// Translation From Files Class
// Developed by Takis Maletsas
// @2016
require_once('translator.class.php');
$translate = new Translator;
$translate->set_language('el');
//Change translations directory
//$translate->set_translations_dir('');
$translate->translate('Hello world!'); //Γειά σου κόσμε!
echo "<br/>";
$translate->translate('It is Takis'); //Είναι ο Τάκης
echo "<br/>";
$translate->set_language('abcde');
$translate->translate('Hello world!'); //Hello world!
echo "<br/>";
$translate->translate('It is Takis'); //It is Takis
?>
|