Re: More ideas for translation support (long)

From: Date: Mon, 23 Jul 2001 19:15:59 +0000
Subject: Re: More ideas for translation support (long)
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1257@lists.php.net to get a copy of this message
A few days ago there was some discussion about template paths (the actual subject was 'different template paths'. I suggested a scheme where you could use your own (rewriting) magic on resources BEFORE they are used further. In your situations, b) would be solvable by rewriting every instance of 'foo.tpl' to 'en/foo.tpl' or de/foo.tpl (language in stead of the skins I use in the example of my postings. Does this help? Greetz, Ralphm. On Mon, Jul 23, 2001 at 05:15:32PM +0200, Hans-Peter Oeri wrote: > Hi! > > ... > > a) prefilter_vars is empty > Everything works as usual > > b) prefilter_vars is { "LANG" } > smarty does compile distinct versions for each value of $LANG and stores them, > let's say in different subdirectories ( en/foo.tpl, de/foo.tpl ) > > c) prefilter_vars is { "LANG", "X" } > Now we can even enhance that scheme to multiple variables! (corresponding to a > two level directory hierarchy...) > > What do you think of that? You wouldn't need to write different resource > handlers as we don't touch them... >

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