Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1463 alexandre_ 1
<?php
2
// +----------------------------------------------------------------------+
3
// | PEAR :: I18Nv2 :: Country                                            |
4
// +----------------------------------------------------------------------+
5
// | This source file is subject to version 3.0 of the PHP license,       |
6
// | that is available at http://www.php.net/license/3_0.txt              |
7
// | If you did not receive a copy of the PHP license and are unable      |
8
// | to obtain it through the world-wide-web, please send a note to       |
9
// | license@php.net so we can mail you a copy immediately.               |
10
// +----------------------------------------------------------------------+
11
// | Copyright (c) 2004 Michael Wallner <mike@iworks.at>                  |
12
// +----------------------------------------------------------------------+
13
//
14
// $Id: Country.php,v 1.1 2007-06-25 09:55:28 alexandre_tb Exp $
15
 
16
/**
17
 * I18Nv2::Country
18
 *
19
 * @package     I18Nv2
20
 * @category    Internationalization
21
 */
22
 
23
require_once 'I18Nv2/CommonList.php';
24
 
25
/**
26
 * I18Nv2_Country
27
 *
28
 * List of ISO-3166 two letter country code to country name mapping.
29
 *
30
 * @author      Michael Wallner <mike@php.net>
31
 * @version     $Revision: 1.1 $
32
 * @access      public
33
 * @package     I18Nv2
34
 */
35
class I18Nv2_Country extends I18Nv2_CommonList
36
{
37
    /**
38
     * Load language file
39
     *
40
     * @access  protected
41
     * @return  bool
42
     * @param   string  $language
43
     */
44
    function loadLanguage($language)
45
    {
46
        return @include 'I18Nv2/Country/' . $language . '.php';
47
    }
48
 
49
    /**
50
     * Change case of code key
51
     *
52
     * @access  protected
53
     * @return  string
54
     * @param   string  $code
55
     */
56
    function changeKeyCase($code)
57
    {
58
        return strToUpper($code);
59
    }
60
}
61
?>