code clip for IntSmarty
Well I finally remembered to ask my friend if I could post his code to the blog and he said yes. so here it is:
[php]
function myGettext($value) {
$hash = md5($value);
if (key_exists($hash, $this->translation)) {
$value = $this->translation[$hash];
} else {
$this->translation[$hash] = $value;
}
return $value;
}
[/php]
cnb is an awesome programmer and guy. You should checkout out his blog to learn more about him and what he is currently doing in the world of PHP. I would also like to thank the people on the PHPCommunity IRC channel (#phpc on freenode) for helping me get this far.



