PHP 클래스 Tools\Utility\L10n

Forward-port of the 2.x core L10n class to support resolvment of iso2/iso3 letter codes and their language names. TODO: Make locale and localeFallback always iso2-letter-codes (deu => de) as per 3.x convention.
사용 중단: Only for upgrading and matching. Use intl PHP libs directly instead.
파일 보기 프로젝트 열기: dereuromark/cakephp-tools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_l10nCatalog array holds all information related to a language
$_l10nMap array They are the ones building the path in /APP/Locale/[code]/ The bibliographic codes are aliases.

공개 메소드들

메소드 설명
__construct ( ) Class constructor
catalog ( string | array | null $language = null ) : array | boolean Attempts to find catalog record for requested language
map ( string | array | null $mixed = null ) : string | array | boolean Attempts to find locale for language, or language for locale

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( )

catalog() 공개 메소드

Attempts to find catalog record for requested language
public catalog ( string | array | null $language = null ) : array | boolean
$language string | array | null String requested language, array of requested languages, or null for whole catalog
리턴 array | boolean array catalog record for requested language, array of catalog records, whole catalog, or false when language doesn't exist

map() 공개 메소드

Attempts to find locale for language, or language for locale
public map ( string | array | null $mixed = null ) : string | array | boolean
$mixed string | array | null 2/3 char string (language/locale), array of those strings, or null
리턴 string | array | boolean string language/locale, array of those values, whole map as an array, or false when language/locale doesn't exist

프로퍼티 상세

$_l10nCatalog 보호되어 있는 프로퍼티

holds all information related to a language
protected array $_l10nCatalog
리턴 array

$_l10nMap 보호되어 있는 프로퍼티

They are the ones building the path in /APP/Locale/[code]/ The bibliographic codes are aliases.
protected array $_l10nMap
리턴 array