Extends YamlFFS with Ruby (on Rails) style plural support. More...
Public Member Functions | |
getFileExtensions () | |
Return the commonly used file extensions for these formats. | |
flattenPlural ($messages) | |
Flattens ruby plural arrays into special plural syntax. | |
unflattenPlural ($key, $message) | |
Converts the special plural syntax to array or ruby style plurals. | |
Static Protected Attributes | |
static | $pluralWords |
Extends YamlFFS with Ruby (on Rails) style plural support.
Supports subkeys zero, one, many, few, other and two for each message using plural with {{count}} variable.
Definition at line 9 of file RubyYamlFFS.php.
RubyYamlFFS::flattenPlural | ( | $ | messages | ) |
Flattens ruby plural arrays into special plural syntax.
array | $messages Array of keys and values |
MWException |
Reimplemented from YamlFFS.
Definition at line 31 of file RubyYamlFFS.php.
RubyYamlFFS::getFileExtensions | ( | ) |
Return the commonly used file extensions for these formats.
Include the dot.
Reimplemented from YamlFFS.
Definition at line 19 of file RubyYamlFFS.php.
RubyYamlFFS::unflattenPlural | ( | $ | key, | |
$ | message | |||
) |
Converts the special plural syntax to array or ruby style plurals.
string | $key Message key prefix | |
string | $message The plural string |
Reimplemented from YamlFFS.
Definition at line 84 of file RubyYamlFFS.php.
RubyYamlFFS::$pluralWords [static, protected] |
array( 'zero' => 1, 'one' => 1, 'many' => 1, 'few' => 1, 'other' => 1, 'two' => 1 )
Definition at line 10 of file RubyYamlFFS.php.