WPDev.one
Core Class

NOOP_Translations

class NOOP_Translations // Constructor: function Object() { [native code] }

Provides the same interface as Translations, but doesn't do anything.

Methods 10 methods

Method / Return Description
add_entry()
void

No description available.

Parameters: $entry: mixed
set_header()
void

Sets a translation header.

Parameters: $header: mixed, $value: mixed
set_headers()
void

Sets translation headers.

Parameters: $headers: mixed
get_header()
false

Returns a translation header.

Parameters: $header: mixed
translate_entry()
false

Returns a given translation entry.

Parameters: $entry: mixed
translate()
void

Translates a singular string.

Parameters: $singular: mixed, $context: mixed
select_plural_form()
int

Returns 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

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