Re: patch - translation support for smarty

From: Date: Wed, 07 Mar 2001 07:54:32 +0000
Subject: Re: patch - translation support for smarty
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-333@lists.php.net to get a copy of this message
On Tue, Mar 06, 2001 at 03:35:09PM -0600, Monte Ohrt wrote: > FYI, we are working on adding a plugin module to Smarty so drop-in > plugins are possible. This will do away with the Smarty.addons.php file. > Then third party contributions will be a snap, just drop them into the > plugin directory. We'll see if there are any hangups in adding your > translation support in this fashion, it will be a good test. Do you have an estimated time for this? roel > Roel Vanhout wrote: > > > > Hi all, > > > > Like I discussed in the text that I send to this list two days ago, I > > have implemented translation support into Smarty. I have tarred it up, > > together with some bare bone test drivers, scripts and translations, in > > the hope that someone would take it for a test drive and let me know > > which problems there are, which things you would like to see improved, > > etc. I would also like to hear the opinion of the Smarty developers, as > > I'm hoping this patch would make it into the 'official' Smarty > > distribution, so that I don't have to manually apply this patch for > > every new version of Smarty that is released. > > > > Following the suggestion that came from someone on this list, I have > > added support to have variables in the strings you want to translate; I > > however have not added support for the advanced things that stphp > > provides. Imho they serve a very rare need; however, I may add them in > > the future. Read the doc for (a bit) more on this. > > > > I have attached the tarball; inside, you will find a diff to make it > > easy to see which changes I had to make to Smarty.class.php, a full, > > patched version of Smarty.class.php for people who don't have 'patch' on > > their systems, an updated version of the document I send two days ago, > > a directory with two primitive but functional 'drivers', and a directory > > with some test scripts. I you want to try it out, make sure to set the > > 'translate' variable in Smarty.class.php to 'true'. Read the docs on > > how > > to use the translations, or look at the example script, if there are any > > questions or things that could be better, *please* contact me. Also if > > you can't get it to run, let me know what goes wrong, and what error > > messages you get. > > > > cheers, > > > > roel > > > > ------------------------------------------------------------------------ > > Name: smarty-translations.tar.gz > > smarty-translations.tar.gz Type: Unix Tape Archive (application/x-tar) > > Encoding: base64 > > > > ------------------------------------------------------------------------ > > --- > > You are currently subscribed to smarty as: monte@ispi.net > > To unsubscribe send a blank email to $subst('Email.Unsub') > > Visit Smarty's homepage at > > http://www.phpinsider.com/php/code/Smarty/ > > -- > Monte Ohrt <monte@ispi.net> > http://www.ispi.net/ -- ALL YOUR BASE ARE BELONG TO US

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