Core Class
View Source on Trac ↗
Core Class
WP_Translations
class WP_Translations
// Constructor: function Object() { [native code] } Class WP_Translations.
Methods 5 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor.
Parameters: $controller: WP_Translation_Controller, $textdomain: string |
| __get() mixed | Magic getter for backward compatibility.
Parameters: $name: string |
| make_entry() Translation_Entry | Builds a Translation_Entry from original string and translation strings.
Parameters: $original: mixed, $translations: mixed |
| translate_plural() (string | Translates a plural string.
Parameters: $singular: mixed, $plural: mixed, $count: mixed, $context: mixed |
| translate() (string | Translates a singular string.
Parameters: $singular: mixed, $context: mixed |
Properties
| Property / Type | Description |
|---|---|
| $textdomain mixed public | No description available. |
| $controller mixed public | No description available. |
Class Information
Since Version
6.5.0
Source File
wp-includes/l10n/class-wp-translations.php
Advertisement