|
| toString () |
| returns the adapters 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.
|
|