Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vagner vinicius bispo cantuares  >  Simple PHP i18n Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP i18n Class
Load and get application internationalized texts
Author: By
Last change:
Date: 1 year ago
Size: 251 bytes
 

Contents

Class file image Download
<?php
/**
 * Bootstrap
 */
 
require 'bootstrap.php';
 
 use \
Lib\I18n as i18n;
 
 
// carrega o arquivo de tradução
 
require 'i18n/translation.php';

 
$i18n = new i18n();
 
$i18n->load($l);
 
 
// tradução
 
echo $i18n->__('welcome');

?>