hello
I created our own class 'class implements ZendPhpTalCsvTranslate
PHPTAL_TranslationService' drawing on PHPTAL_GetTextTranslator.
The problem is that when you call <span i18n:translate="login or email">
Login </ span>
you receive an error message
'An error occurred
Exception information:
Message: Unable to find variable 'login or email' in current scope
Stack trace:
# 0 / home / www / library / PHPTAL.php (845): eval () 'd code (15):
PHPTAL_Context-> __get (' login or email ')
# 1 / home / www / library / PHPTAL.php (675):
tpl_4de0e0a6_login__ZKjjEYxHyDjSUDuRmHwCfw (Object (PHPTAL), Object
(PHPTAL_Context))
# 2 / home / www / forum / library / ZendViewPhpTal.php (97): PHPTAL->
execute () '
after changing the code in the 'PHPTAL_Php_Attribute_I18N_Translate'
in the 'public function before ($ PHPTAL_Php_CodeWriter codewriter)'
from
$code = $codewriter->evaluateExpression ($this->expression);
to
$code = $this->expression;
Translation takes place without problems.
Is it a bug or something spoiled ? When using gettext modeled on
examples from phptal manual.
Any help ?
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal