Login   Register  
PHP Classes
elePHPant
Icontem

File: advanced_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of frizzo28  >  PHP Locale Language Strings  >  advanced_example.php  >  Download  
File: advanced_example.php
Role: Example script
Content type: text/plain
Description: Example with all parameters
Class: PHP Locale Language Strings
Get locale strings for multi-language sites
Author: By
Last change:
Date: 1 year ago
Size: 433 bytes
 

Contents

Class file image Download
<?php
include ("language.php");

//Initialize the class
$lang=new language('fr');

//Show the link to change language
$lang->show_language_select('./flags/');

//Translate code and write the translation
$lang->writeText('HELLO_TEXT');

//Transform code in translation and return the translation as string without writing it directly
$scringresult=$lang->writeText('SAMPLE_TEXT',true);
echo 
"<br>".$scringresult;

?>