Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1463 alexandre_ 1
<?php
2
 
3
/**
4
* Using I18Nv2_Language
5
* =====================
6
*
7
* I18Nv2 provides translated lists of language names.
8
*
9
* $Id: using_I18Nv2_Language.php,v 1.1 2007-06-25 09:55:25 alexandre_tb Exp $
10
*/
11
 
12
require_once 'I18Nv2/Language.php';
13
 
14
$lang = &new I18Nv2_Language('it', 'iso-8859-1');
15
 
16
echo "Italian name for English: ",
17
    $lang->getName('en'), "\n";
18
 
19
echo "Italian name for French:  ",
20
    $lang->getName('fr'), "\n";
21
?>