PHP 클래스 Neos\Flow\I18n\Locale
Objects of this kind conveniently represent locales usually described by
locale identifiers such as de_DE, en_Latin_US etc. The locale identifiers
used are defined in the Unicode Technical Standard #35 (Unicode Locale
Data Markup Language).
Using this class asserts the validity of the used locale and provides you
with some useful methods for getting more information about it.
Please note that this class represents locale identifier with valid syntax,
but it does not assures that represented locale is available (installed) in
current Flow installation. In order to check that, various methods of
\Neos\Flow\I18n\Service class can be used.
파일 보기
프로젝트 열기: neos/flow-development-collection
1 사용 예제들
보호된 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$language |
string |
The language identifier - a BCP47, ISO 639-3 or 639-5 code
Like the standard says, we use "mul" to label multilanguage content |
|
$region |
string |
The region identifier - an ISO 3166-1-alpha-2 code or a UN M.49 three digit code
Note: We use "ZZ" for "unknown region" or "global" |
|
$script |
string |
The script identifier - an ISO 15924 code according to BCP47 |
|
$variant |
string |
The optional variant identifier - one of the registered registered variants according to BCP47 |
|
공개 메소드들
메소드 상세
Constructs this locale object
public __construct ( string $localeIdentifier ) |
$localeIdentifier |
string |
A valid locale identifier according to UTS#35 |
Returns the string identifier of this locale
Returns the language defined in this locale
Returns the region defined in this locale
Returns the script defined in this locale
Returns the variant defined in this locale
프로퍼티 상세
The language identifier - a BCP47, ISO 639-3 or 639-5 code
Like the standard says, we use "mul" to label multilanguage content
protected string $language |
리턴 |
string |
|
The region identifier - an ISO 3166-1-alpha-2 code or a UN M.49 three digit code
Note: We use "ZZ" for "unknown region" or "global"
protected string $region |
리턴 |
string |
|
The script identifier - an ISO 15924 code according to BCP47
protected string $script |
리턴 |
string |
|
The optional variant identifier - one of the registered registered variants according to BCP47
protected string $variant |
리턴 |
string |
|