Re: More ideas for translation support (long)

From: Date: Tue, 24 Jul 2001 10:07:46 +0000
Subject: Re: More ideas for translation support (long)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1286@lists.php.net to get a copy of this message
Hi! Quoting Ralph Meijer <smarty@ralphm.ik.nu>: > Maybe. I've been looking in the code, and if you would alter > Smarty.class.php _fetch_compile_path() (in a subclass or otherwise), Now, we have two possibilities: a) subclass (and probably rename the method as it is "officially" subclassable then... b) something like the register* functions Actually, I would prefer a register* solution, just because of the uniformity of the API (a "usual" user of smarty does not really need to subclass...). However, a subclass would be more "clean" as more than one compile path should not exist... What do you all think? I think it would be REALLY nice to have different translation handlers (probably even stackable!) that may work together. So, let's say I have one for 1:1 translations out of a db/file and another to take care of more complicated i18n tasks. The smallest common denominator (is that the correct expression) should then be a variable for the language (I suggest $LANG) and it's contents (I suggest ISO two letter codes). Don't conform! IkKampfCaspar75

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