PHP Classes

File: example.php

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

?>