PHP 클래스 Jyxo\Gettext\Parser\Item

저자: Matěj Humpál
파일 보기 프로젝트 열기: jyxo/php

보호된 프로퍼티들

프로퍼티 타입 설명
$fuzzy boolean Is msgid fuzzy?
$location string Msgid position in the source code.
$msgid string Msgid.
$msgstr string | array For each plural form one array field. If there is only one translation (no plural forms), it is stored as a string.
$obsolete boolean Is msgid obsolete?
$plural string Plural forms.

공개 메소드들

메소드 설명
__construct ( string $chunk ) Constructor.
getLocation ( ) : string | array Returns msgid's position in source codes.
getMsgid ( ) : string | array Returns msgid.
getMsgstr ( ) : string | array Returns msgstr.
getPlural ( ) : string Returns plural translations.
hasPlural ( ) : boolean Returns whether the msgid has plural forms.
isFuzzy ( ) : boolean Returns whether the msgid is fuzzy.
isObsolete ( ) : boolean Returns whether the msgid is obsolete.

보호된 메소드들

메소드 설명
parse ( array $chunks ) The actual parser.

메소드 상세

__construct() 공개 메소드

Retrieves a fragment of the PO file and parses it.
public __construct ( string $chunk )
$chunk string Translation fragment

getLocation() 공개 메소드

Returns msgid's position in source codes.
public getLocation ( ) : string | array
리턴 string | array

getMsgid() 공개 메소드

Returns msgid.
public getMsgid ( ) : string | array
리턴 string | array

getMsgstr() 공개 메소드

Returns msgstr.
public getMsgstr ( ) : string | array
리턴 string | array

getPlural() 공개 메소드

Returns plural translations.
public getPlural ( ) : string
리턴 string

hasPlural() 공개 메소드

Returns whether the msgid has plural forms.
public hasPlural ( ) : boolean
리턴 boolean

isFuzzy() 공개 메소드

Returns whether the msgid is fuzzy.
public isFuzzy ( ) : boolean
리턴 boolean

isObsolete() 공개 메소드

Returns whether the msgid is obsolete.
public isObsolete ( ) : boolean
리턴 boolean

parse() 보호된 메소드

The actual parser.
protected parse ( array $chunks )
$chunks array Lines of the PO file fragment

프로퍼티 상세

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

Is msgid fuzzy?
protected bool $fuzzy
리턴 boolean

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

Msgid position in the source code.
protected string $location
리턴 string

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

Msgid.
protected string $msgid
리턴 string

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

For each plural form one array field. If there is only one translation (no plural forms), it is stored as a string.
protected string|array $msgstr
리턴 string | array

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

Is msgid obsolete?
protected bool $obsolete
리턴 boolean

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

Plural forms.
protected string $plural
리턴 string