Zend Framework  1.12
Public Member Functions | Protected Member Functions | List of all members
Zend_Translate_Adapter_Csv Class Reference

Public Member Functions

 __construct ($options=array())
 Generates the adapter.
 
 toString ()
 returns the adapters name
 
- Public Member Functions inherited from Zend_Translate_Adapter
 __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.
 

Protected Member Functions

 _loadTranslationData ($filename, $locale, array $options=array())
 Load translation data.
 
- Protected Member Functions inherited from Zend_Translate_Adapter
 _loadTranslationData ($data, $locale, array $options=array())
 Load translation data.
 
 _log ($message, $locale)
 Logs a message when the log option is set.
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Translate_Adapter
static getCache ()
 Returns the set cache.
 
static setCache (Zend_Cache_Core $cache)
 Sets a cache for all Zend_Translate_Adapters.
 
static hasCache ()
 Returns true when a cache is set.
 
static removeCache ()
 Removes any set cache.
 
static clearCache ($tag=null)
 Clears all set cache data.
 
- Public Attributes inherited from Zend_Translate_Adapter
const LOCALE_DIRECTORY = 'directory'
 Scans for the locale within the name of the directory integer.
 
const LOCALE_FILENAME = 'filename'
 Scans for the locale within the name of the file integer.
 
- Protected Attributes inherited from Zend_Translate_Adapter
 $_options
 
 $_translate = array()
 
- Static Protected Attributes inherited from Zend_Translate_Adapter
static $_cache = null
 

Constructor & Destructor Documentation

__construct (   $options = array())

Generates the adapter.

Parameters
array | Zend_Config$optionsTranslation content

Member Function Documentation

_loadTranslationData (   $filename,
  $locale,
array  $options = array() 
)
protected

Load translation data.

Parameters
string | array$filenameFilename and full path to the translation source
string$localeLocale/Language to add data for, identical with locale identifier, see Zend_Locale for more information
array$optionOPTIONAL Options to use
Returns
array
toString ( )

returns the adapters name

Returns
string