Re: [phpldapadmin] Template localisation
Alessandro De Zorzi <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Deon George wrote:
> In the templates, you can change them and use any language you like :)
>
why do not use gettext for XML template?
I explain, Phamm use a template engine inspired to pla,
some lines of mail.xml seem like:
<attribute name="smtpAuth">
<prettyName>SMTP Auth</prettyName>
<bool>1</bool>
suppose "prettyName" is the label printed on browser and could be
translated... use po4a-gettextize to extract tag for .pot files with:
po4a-gettextize -o tags="<prettyName>" -o tagsonly=1 -f xml \
-m ../plugins/alias.xml \
-m ../plugins/ftp.xml \
-m ../plugins/mail.xml \
-m ../plugins/person.xml \
-m ../plugins/proxy.xml \
-p phamm.pot
find ../ -name *.php -exec xgettext --keyword=_ -L PHP -j -o phamm.pot
--omit-header -s {} \;
In this way you will have a fully gettext support for PHP and XML files.
cheers,
Alessandro De Zorzi
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/