|
| toString () |
| Returns the adapter name.
|
|
| __construct ($options=array()) |
| Generates the adapter.
|
|
| addTranslation ($options=array()) |
| Add translations.
|
|
| setOptions (array $options=array()) |
| Sets new adapter options.
|
|
| getOptions ($optionKey=null) |
| Returns the adapters name and it's options.
|
|
| getLocale () |
| Gets locale.
|
|
| setLocale ($locale) |
| Sets locale.
|
|
| getList () |
| Returns the available languages from this adapter.
|
|
| getMessageId ($message, $locale=null) |
| Returns the message id for a given translation If no locale is given, the actual language will be used.
|
|
| getMessageIds ($locale=null) |
| Returns all available message ids from this adapter If no locale is given, the actual language will be used.
|
|
| getMessages ($locale=null) |
| Returns all available translations from this adapter If no locale is given, the actual language will be used If 'all' is given the complete translation dictionary will be returned.
|
|
| isAvailable ($locale) |
| Is the wished language available ?
|
|
| translate ($messageId, $locale=null) |
| Translates the given string returns the translation.
|
|
| plural ($singular, $plural, $number, $locale=null) |
| Translates the given string using plural notations Returns the translated string.
|
|
| _ ($messageId, $locale=null) |
| Translates the given string returns the translation.
|
|
| isTranslated ($messageId, $original=false, $locale=null) |
| Checks if a string is translated within the source or not returns boolean.
|
|
| toString () |
| Returns the adapter name.
|
|
|
| _loadTranslationData ($filename, $locale, array $options=array()) |
| Load translation data (TMX file reader)
|
|
| _startElement ($file, $name, $attrib) |
| Internal method, called by xml element handler at start.
|
|
| _endElement ($file, $name) |
| Internal method, called by xml element handler at end.
|
|
| _contentElement ($file, $data) |
| Internal method, called by xml element handler for content.
|
|
| _findEncoding ($filename) |
| Internal method, detects the encoding of the xml file.
|
|
| _loadTranslationData ($data, $locale, array $options=array()) |
| Load translation data.
|
|
| _log ($message, $locale) |
| Logs a message when the log option is set.
|
|