Implements partial support for SmartFormat plural syntax parsing. More...
Static Public Member Functions | |
static | getPluralInstances (string $text) |
Example input: {0} {0:message|messages} older than {1} {1:week|weeks} {0:has|have} been deleted. | |
Implements partial support for SmartFormat plural syntax parsing.
Definition at line 14 of file SmartFormatPlural.php.
|
static |
Example input: {0} {0:message|messages} older than {1} {1:week|weeks} {0:has|have} been deleted.
Example output: [ '0' => [ [ 'forms' => [ 'message', 'messages' ], 'original' => '{0:message|messages}', ], [ 'forms' => [ 'has', 'have' ], 'original' => '{0:has|have}', ], ], '1' => [ [ 'forms' => [ 'week', 'weeks' ], 'original' => '{1:week|weeks}', ], ], ]
string | $text |
Definition at line 41 of file SmartFormatPlural.php.