Re: More ideas for translation support (long)

From: Date: Mon, 23 Jul 2001 20:36:05 +0000
Subject: Re: More ideas for translation support (long)
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1262@lists.php.net to get a copy of this message
Hi! Quoting Ralph Meijer <smarty@ralphm.ik.nu>: > use your own (rewriting) magic on resources BEFORE they are used > further. If I understand your post, you suggest actually including different SOURCE templates? However, what I suggest is one source template -> many compiled templates. While I can think of solutions to include different SOURCE templates w/o changing the core, accessing different COMPILED templates (w/ only ONE source) definitely needs a core change, doesn't it? But let's say we include such a rewrite magic on the "compiled" side... That would indeed solve the problem in an even more generic way :-) Just as a little detail: Instead of subclassing smarty, I would prefer a scheme of "registering" such a rewrite function. Just because we don't really use subclassing anywhere else, do we? So, to summarize: - Actual translation done in pre-filters.... probably different "standard" filters available in the future? - core should be enhanced to allow "rewrite magic" to access different compiled versions of a template. I think, this is really a good solution for anyone, even those who don't want to have translations in the template engine. The only change to the core is an additional "rewrite magic" handler, and this could be used for other reasons as well... Don't conform! IkKampfCaspar75

« previous php.smarty.general (#1262) next »