Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
parse ( array $chunks ) | The actual parser. |
public __construct ( string $chunk ) | ||
$chunk | string | Translation fragment |
public getLocation ( ) : string | array | ||
return | string | array |
public isObsolete ( ) : boolean | ||
return | boolean |
protected string $location | ||
return | string |