Welcome Guest, Not a member yet? Register   Sign In
Mod to have language keys automatically recognized by the template parser
#6

[eluser]Yoglets[/eluser]
Ah ok I see what you're getting at. One preg_match_all() to pick out the entire list of patterns in a single shot, then iterate over that result list and add only those to the $data array. I'll benchmark this technique against my files and see what I get. Alternatively, I could create an interface to manually add certain keys, something like:
Code:
$this->parser->loadKey(array('key1', 'key2', 'key3'));
This would be the most efficient obviously, but somewhat defeats the purpose of the automation.


Messages In This Thread
Mod to have language keys automatically recognized by the template parser - by El Forum - 07-17-2007, 07:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB