API documentation :: Docs For Class arbitCachingTranslationContext
Packages:Interfaces:
Classes:
|
Core::View::arbitCachingTranslationContextClass arbitCachingTranslationContextTranslation manager for arbit. Translation manager for arbit. Handles multiple backends for caching of the translations, and creates translation file entries for missing translation items.
Descendants
Member Variables
Method Summary
Methods__construct
void
__construct(
$translation
,
$backend
, string
$locale
, string
$context
)
Construct caching translation context Construct from translation backend and the actual translation. Construct caching translation context Construct from translation backend and the actual translation. Parameters:
Redefined in descendants as:
compileTranslation
string
compileTranslation(
string
$key
, [
$params
= array()] )
Returns the translated version of the original string $key. Returns the translated version of the original string $key. This method returns a translated string and substitutes the parameters $param in the localized string with PHP code to place the variable data into the string at a later moment. Instead of the values for each of the parameters, an expression to get to the data should be sumbitted into the $params array.
Parameters:
getTranslation
string
getTranslation(
string
$key
, [
$params
= array()] )
Returns the translated version of the original string $key. Returns the translated version of the original string $key. This method returns a translated string and substitutes the parameters $param in the localized string. Parameters:
Exceptions:
Redefined in descendants as:
replaceKeys
void
replaceKeys(
mixed
$key
,
$params
)
Replace keys in translation strings Replace all keys in the translation strings. sign and are followed by alsphanumeric characters. the corresponding entries ind the $params array. Replace keys in translation strings Replace all keys in the translation strings. Keys start with a percent sign and are followed by alsphanumeric characters. They are replaced by the corresponding entries ind the $params array. Parameters:
Documentation generated on Mon, 05 Apr 2010 14:01:39 +0200 by phpDocumentor 1.4.3
|