Re: [SMARTY] smarty and GNU gettext

From: Date: Tue, 30 May 2006 14:50:26 +0000
Subject: Re: [SMARTY] smarty and GNU gettext
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13445@lists.php.net to get a copy of this message
thanks for all the comments. quite interesting what related issues a question brings up :0
There're other issues I considered, as the need to reboot apache when you change the .po files so they're loaded and the hit just for initilizing the system.
is this really the case? Wordpress and Drupal both use gettext and PO files, and yet I cant imagine people in shared hosting restarting apache... in terms of performance, does the syntax suggested above: {translate}some string{/translate} mean that smarty cannot pre-compile the templates? (I'm not exactly clear how all that works, so please bear with me! I think that the template itself is converted to a php file, then each time a page is displayed that uses it, things go a little quicker. but if there is an area where possibly non-static content might be passing through a function, this would mean the conversion to php also would happen every time?) also, for performance and clean templates, what about just using config files? {#someString#} of course, some kind of management GUI would be needed for building the config files, but this isnt too big a deal. tx, /dc

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