PHP Classes

File: advanced_example.php

Recommend this page to a friend!
  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: 11 years 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;

?>