From: Sylvie G. <sgr...@at...> - 2005-02-15 22:06:41
|
> > What function does the filter block.translate.php have? To me it seems > > redundant, but there are references to this filter in other > places in the > > code, so i suspect that i have missed something! > > This function just translates the {tr} ... {/tr} blocks in smarty > templates. But since all is translated in the prefilter i think it's > mainly unneeded - or do we need it in modules? I'm not sure. > The prefilter is used before variable substitution, the block module after. So if you have {tr}the feature $name is activated{/tr} If the translation is not found as it is, smarty replaced the $name with the value and try to find the translation. It can be handy ... but I am not sure it still working or used in tikiwiki right now. |