| package | pomo |
|---|
Translation_Entry($args = array())
__construct(array $args = array())
array{ Arguments array, supports the following keys:
@type string $singular The string to translate, if omitted an
empty entry will be created.
@type string $plural The plural form of the string, setting
this will set `$is_plural` to true.
@type array $translations Translations of the string and possibly
its plural forms.
@type string $context A string differentiating two equal strings
used in different contexts.
@type string $translator_comments Comments left by translators.
@type string $extracted_comments Comments left by developers.
@type array $references Places in the code this string is used, in
relative_to_root_path/file.php:linenum form.
@type array $flags Flags like php-format.
}
key() : string | false
| since | 2.8.0 |
|---|
stringfalseThe key or false if the entry is null.merge_with(\Translation_Entry $other)
| since | 2.8.0 |
|---|
\Translation_EntryOther translation entry.
$context
null$flags
array()$is_plural : boolean
false$plural
null$references
array()$singular
null$translations
array()$translator_comments
''
$extracted_comments
Default
''