Core Class
View Source on Trac ↗
Core Class
Gettext_Translations
class Gettext_Translations
// Constructor: function Object() { [native code] } Gettext_Translations class.
Methods 6 methods
| Method / Return | Description |
|---|---|
| gettext_select_plural_form() int | The gettext implementation of select_plural_form.
Parameters: $count: mixed |
| nplurals_and_expression_from_header() array{0: | Returns the nplurals and plural forms expression from the Plural-Forms header.
Parameters: $header: mixed |
| make_plural_form_function() callable | Makes a function, which will return the right translation index, according to the
Parameters: $nplurals: mixed, $expression: mixed |
| parenthesize_plural_exression() string | Adds parentheses to the inner parts of ternary operators in
Parameters: $expression: mixed |
| make_headers() array<string, | Prepare translation headers.
Parameters: $translation: mixed |
| set_header() void | Sets translation headers.
Parameters: $header: mixed, $value: mixed |
Properties
| Property / Type | Description |
|---|---|
| $_nplurals mixed public | No description available. |
| $_gettext_select_plural_form mixed public | No description available. |
Class Information
Since Version
2.8.0
Source File
wp-includes/pomo/translations.php
Advertisement