Login   Register  
PHP Classes
elePHPant
Icontem

File: example-translate-template.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Unay Santisteban  >  Language Replace  >  example-translate-template.php  >  Download  
File: example-translate-template.php
Role: Example script
Content type: text/plain
Description: example
Class: Language Replace
Replace strings with language translations
Author: By
Last change: Update example-translate-template.php
Date: 5 months ago
Size: 214 bytes
 

Contents

Class file image Download
<?php 
session_start
();
// this method is not optimal, deprecated
$_SESSION['language'] = "en_GB";
include 
'languages.class.php'
echo 
languages::translateDocument(file_get_contents('example-template.html'));
?>