Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sandeep Kumar  >  PHP Website Multi Language  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example File
Class: PHP Website Multi Language
Translate application texts using Google Translate
Author: By
Last change:
Date: 5 years ago
Size: 592 bytes
 

Contents

Class file image Download
<?php
set_time_limit
(0); // sometime we need this when array is too long.
include_once('readHtml.php');
include_once(
'langconvert.php');
include_once(
'en.php');
$language=new LangConvertor();
$language->from='en'//english (there should be words in english in en.php)
$language->to='it'//italian. (you will find a new file named by it.time().php in ur root folder)
$language->content=$lang// $lang is array of english words ex: array('home'=>'Homp','aboutus'=>'About Us') etc
$language->GetResult();
echo 
'Files has been created succesfully. please check your root folder';
?>