Source for file Language.php
Documentation is available at Language.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Naoki Shima <murahachibu@php.net> |
// +----------------------------------------------------------------------+//
// $Id: Language.php 110339 2003-01-04 11:55:29Z mj $
require_once('I18N/Common.php');
* Save list of ISO-639-1 two letter language code to language name mapping to its initiating object
// call constructor of parent class
* Two letter code to Language mapping
* If you need three letter code to Language mappng,
'bn' => 'Bengali; Bangla',
'lv' => 'Latvian, Lettish',
'ps' => 'Pashto, Pushto',
'rm' => 'Rhaeto-Romance',
'sh' => 'Serbo-Croatian',
* fake constructor. calls actual constructor
* destructor. does nothing now.
function _I18N_Language()
* Check to see if passed Language code is valid meaning
* @param : string Language code to check
function isValidCode($code)
return in_array(strtolower($code),array_keys($this->_codes));
* Return name of the language for language code passed
* @param : string language code
* @return: string name of the language
return $this->_codes[$code];
Documentation generated on Mon, 11 Mar 2019 15:36:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|