Core Class
View Source on Trac ↗
Core Class
Translations
class Translations
// Constructor: function Object() { [native code] } Translations class.
Methods 12 methods
| Method / Return | Description |
|---|---|
| add_entry() bool | Adds an entry to the PO structure.
Parameters: $entry: mixed |
| add_entry_or_merge() bool | Adds or merges an entry to the PO structure.
Parameters: $entry: mixed |
| set_header() void | Sets $header PO header to $value
Parameters: $header: mixed, $value: mixed |
| set_headers() void | Sets translation headers.
Parameters: $headers: mixed |
| get_header() (string | Returns a given translation header.
Parameters: $header: mixed |
| translate_entry() (Translation_Entry | Returns a given translation entry.
Parameters: $entry: mixed |
| translate() string | Translates a singular string.
Parameters: $singular: mixed, $context: mixed |
| select_plural_form() int | Given the number of items, returns the 0-based index of the plural form to use
Parameters: $count: mixed |
| get_plural_forms_count() int | Returns the plural forms count. |
| translate_plural() string | Translates a plural string.
Parameters: $singular: mixed, $plural: mixed, $count: mixed, $context: mixed |
| merge_with() void | Merges other translations into the current one.
Parameters: $other: mixed |
| merge_originals_with() void | Merges originals with existing entries.
Parameters: $other: mixed |
Properties
| Property / Type | Description |
|---|---|
| $entries mixed public | No description available. |
| $headers mixed public | No description available. |
Class Information
Since Version
2.8.0
Source File
wp-includes/pomo/translations.php
Advertisement