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: 8 years ago
Size: 251 bytes


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

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


For more information send a message to info at phpclasses dot org.