PoItem handles one translation.
@todo: This class contains some really old legacy code.
Expanded class hierarchy of PoItem
https://drupal.org/node/1637662
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PoItem:: |
private | property | The comment of this translation. | |
PoItem:: |
private | property | The context this translation belongs to. | |
PoItem:: |
private | property | The language code this translation is in. | |
PoItem:: |
private | property | Flag indicating if this translation has plurals. | |
PoItem:: |
private | property | The source string or array of strings if it has plurals. | |
PoItem:: |
private | property | The translation string or array of strings if it has plurals. | |
PoItem:: |
private | function | Format the POItem as a string. | |
PoItem:: |
private | function | Formats a plural translation. | |
PoItem:: |
private | function | Formats a singular translation. | |
PoItem:: |
private | function | Formats a string for output on multiple lines. | |
PoItem:: |
function | Get the comment of this translation. | ||
PoItem:: |
function | Get the context this translation belongs to. | ||
PoItem:: |
function | Get the language code of the currently used language. | ||
PoItem:: |
function | Get the source string or the array of strings if the translation has plurals. | ||
PoItem:: |
function | Get the translation string or the array of strings if the translation has plurals. | ||
PoItem:: |
function | Get if the translation has plural values. | ||
PoItem:: |
function | Set the comment of this translation. | ||
PoItem:: |
function | Set the context this translation belongs to. | ||
PoItem:: |
public | function | Create the PoItem from a structured array. | |
PoItem:: |
function | Set the language code of the current language. | ||
PoItem:: |
function | Set if the translation has plural values. | ||
PoItem:: |
function | Set the source string or the array of strings if the translation has plurals. | ||
PoItem:: |
function | Set the translation string or the array of strings if the translation has plurals. | ||
PoItem:: |
public | function | Output the PoItem as a string. |