package pomo

 Methods

add_entry()

add_entry($entry) 

Parameters

$entry

Returns a translation header.

get_header(string $header) : false
since 2.8.0

Parameters

$header

string

Returns

false

Returns the plural forms count.

get_plural_forms_count() : integer
since 2.8.0

Returns

integer

Merges other translations into the current one.

merge_with(\Translations $other) 
since 2.8.0

Parameters

$other

\Translations

Returns the plural form to use.

select_plural_form(integer $count) : integer
since 2.8.0

Parameters

$count

integer

Returns

integer

Sets a translation header.

set_header(string $header, string $value) 
since 2.8.0

Parameters

$header

string

$value

string

Sets translation headers.

set_headers(array $headers) 
since 2.8.0

Parameters

$headers

array

Translates a singular string.

translate(string $singular, string $context = null
since 2.8.0

Parameters

$singular

string

$context

string

Returns a given translation entry.

translate_entry(\Translation_Entry $entry) : false
since 2.8.0

Parameters

$entry

\Translation_Entry

Returns

false

Translates a plural string.

translate_plural(string $singular, string $plural, integer $count, string $context = null) : string
since 2.8.0

Parameters

$singular

string

$plural

string

$count

integer

$context

string

Returns

string

 Properties

 

List of translation entries.

$entries : array<mixed,\Translation_Entry>

Default

array()
since 2.8.0
 

List of translation headers.

$headers : \array<string,

Default

array()
since 2.8.0