Localizable template
| From: | Enver ALTIN | Date: | Fri, 04 Jun 2004 14:34:05 +0000 |
| Subject: | Localizable template | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12905@lists.php.net to get a copy of this message | ||
Hi,
I have been recently upgrading an older project to use HTML_Template_IT
and gettext all around, and I'm stuck! :-)
How do I enable a template to be localized? It seems that the
intltool-update script can collect things like:
<h2>_("Some text to localize")</h2>
these, what's the good way to gettext() them? Could we wrap another
localizable class around the template engine, parse these and call
gettext() as needed, replacing these parts? If you think this is the
good way, can you point me to the right direction to do it?
I think this would be useful.
-HAND
--
__________
| |
| | Enver ALTIN (a.k.a. skyblue)
| | Software developer, IT consultant
| FRONT |
|==========| FrontSITE Bilgi Teknolojisi A.Ş.
|_____SITE_| http://www.frontsite.com.tr/
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc