Re: [SMARTY] Re: using different languages in my Templates
| From: | akorthaus@web.de | Date: | Fri, 20 Dec 2002 17:05:55 +0000 |
| Subject: | Re: [SMARTY] Re: using different languages in my Templates | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6918@lists.php.net to get a copy of this message | ||
Hallo!
At http://smarty.incutio.com/?page=SmartyMultilanguageSupport I've posted a short article how to extend Smarty to use special tags within your template. It's not 100% finished yet and has smaller bugs in source but hey - it works. I like this idea!But what should I do with: | function loadTranslationTable($path, $locale=null) {| | // This method is only a placeholder and wants to be overwritten by YOU! ;-)| | $this->_loadTranslationTable($path, $locale);| | }| | | | function unloadTranslationTable($path, $locale) {| | // This method is only a placeholder and wants to be overwritten by YOU! ;-)| | $this->_unloadTranslationTable($path, $locale);| | }| ? And should there only be one global translation-table per language for the whole site? I think I will get problems with namespaces, and I have very much overhead, because for one template I only need a small part of the translation-table. Ok, It's only needed if the template changes, but it should not be too slow in this case. But what if the translation-table changes and _not_ the template? How can I rebuild this template_c again? Kind regards, Andreas