Zend_Translate_AdapterBasic adapter class for each translation source adapter
Located in /Translate/Adapter.php (line 42)
boolean
isTranslated
(string $messageId, [boolean $original = false], [string|Zend_Locale $locale = null])
string
plural
(string $singular, string $plural, integer $number, [string|Zend_Locale $locale = null])
static Zend_Cache_Core
$_cache
= null (line 59)
Internal cache for all adapters
array
$_options
= array(Array with all options, each adapter can have own additional options
'clear' => when true, clears already loaded translations when adding new files 'content' => content to translate or file or directory with content 'disableNotices' => when true, omits notices from being displayed 'ignore' => a prefix for files and directories which are not being added 'locale' => the actual set locale to use 'log' => a instance of Zend_Log where logs are written to 'logMessage' => message to be logged 'logUntranslated' => when true, untranslated messages are not logged 'reload' => reloads the cache by reading the content again 'scan' => searches for translation files using the LOCALE constants
array
$_translate
= array() (line 106)
Translation table
static clearCache (line 919)
Clears all set cache data
static hasCache (line 895)
Returns true when a cache is set
static removeCache (line 909)
Removes any set cache
static setCache (line 885)
Sets a cache for all Zend_Translate_Adapters
Constructor __construct (line 115)
Generates the adapter
addTranslation (line 184)
Add translations
This may be a new language or additional content for an existing language If the key 'clear' is true, then translations for the specified language will be replaced and added otherwise
getList (line 450)
Returns the available languages from this adapter
getMessageId (line 470)
Returns the message id for a given translation If no locale is given, the actual language will be used
getMessageIds (line 486)
Returns all available message ids from this adapter If no locale is given, the actual language will be used
getMessages (line 503)
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
getOptions (line 363)
Returns the adapters name and it's options
isAvailable (line 524)
Is the wished language available ?
isTranslated (line 832)
Checks if a string is translated within the source or not returns boolean
plural (line 783)
Translates the given string using plural notations Returns the translated string
setOptions (line 320)
Sets new adapter options
toString (line 930)
Returns the adapter name
translate (line 663)
Translates the given string returns the translation
_ (line 815)
Translates the given string returns the translation
_loadTranslationData (line 538)
Load translation data
_log (line 794)
Logs a message when the log option is set
Documentation generated on Mon, 21 Jun 2010 15:06:38 -0400 by phpDocumentor 1.4.3