Smarty block function, provides gettext support for Smarty
Original code was written by Sagi Bashari <sagi@boom.org.il>
The block content is the text that should be translated. Any parameter that is sent to the function will be represented as %n in the translation text, where n is 1 for the first parameter. The following parameters are reserved:
'html' for HTML escaping, this is the default.
'js' for javascript escaping.
plural - The plural version of the text (2nd parameter of ngettext())
count - The item count for plural mode (3rd parameter of ngettext())