i18n.php File Reference

Go to the source code of this file.

Functions

 ezcurrentLanguage ()
 ezinsertarguments ($text, $arguments)

Variables

 $hasFallback = false
 $ini = & eZINI::instance()
 $useTextTranslation = false
 if ($ini->variable( 'RegionalSettings', 'TextTranslation')!= 'disabled')

Function Documentation

ezcurrentLanguage (  ) 
Returns:
the current language used.

Definition at line 34 of file i18n.php.

Referenced by eZi18nOperator::i18nTrans().

ezinsertarguments ( text,
arguments 
)

Replaces keys found in $text with values in $arguments. If $arguments is an associative array it will use the argument keys as replacement keys. If not it will convert the index to a key looking like n, where n is a number between 1 and 9. Returns the new string.

Definition at line 48 of file i18n.php.


Variable Documentation

$hasFallback = false

Definition at line 75 of file i18n.php.

$ini = & eZINI::instance()

Translates the source $source with context $context and optional comment $comment and returns the translation. Uses eZTranslatorMananger::translate() to do the actual translation.

If the site.ini settings RegionalSettings/TextTranslation is set to disabled this function will only return the source text.

Definition at line 73 of file i18n.php.

$useTextTranslation = false

Definition at line 74 of file i18n.php.

if($ini->variable( 'RegionalSettings', 'TextTranslation')!= 'disabled')

Definition at line 76 of file i18n.php.

Referenced by Cpdf::output().

Generated on Mon Jul 12 07:10:12 2010 for eZ publish by  doxygen 1.6.3