mixed) $arguments * @return string */ static public function translate( $string, $context, $arguments ) { $ttc = ezcTemplateTranslationConfiguration::getInstance(); $ctxt = $ttc->manager->getContext( $ttc->locale, $context ); $translation = $ctxt->getTranslation( $string, $arguments ); return $translation; } /** * Compiles the string $string from the context $context with $arguments as variables into executable code. * * This static method translates a string, but inserts special code as * replacements for the variables. * * @param string $string * @param string $context * @param array(string=>mixed) $arguments * @return string */ static public function compile( $string, $context, $arguments ) { $ttc = ezcTemplateTranslationConfiguration::getInstance(); $ctxt = $ttc->manager->getContext( $ttc->locale, $context ); $translation = $ctxt->compileTranslation( $string, $arguments ); return $translation; } } ?>