Re: [PHP] localisation in web applications From: Alex Black (enigma <email protected>)
Date: 12/18/00

I have thought about doing it a couple of ways with binarycloud (though I
have not had the opportunity to do so):

for single language sites, we call a module, which automatically includes a
markup template (html for a form, or whatever) - we have the ability to pass
in configuration arrays to modules, so you could just point it at a
different template... that can be a bit of a pain, because you have to make
structural changes to all of the html, but html changes can be made _very_
quickly.

or, better, you _could_ use xml files that are loaded up by the module, and
more abstracted html templates, so the module loads up the xml, which
contains all the language strings, and sets a bunch of variables with text
values, and those values get passed in to the markup print functions in the
html template, which echoes them in the right places.

that would work pretty well, and it would be fairly easy to maintain.

if you think about doing something seriously, please contact me, I'd _love_
to have a coherent system integrated into binarycloud.

_a

--
Alex Black, Head Monkey
enigma <email protected>

The Turing Studio, Inc. http://www.turingstudio.com

vox+510.666.0074 fax+510.666.0093

Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522

> From: kaatz <email protected> (Juergen Kaatz) > Newsgroups: php.general > Date: 18 Dec 2000 10:51:50 -0800 > Subject: [PHP] localisation in web applications > > Hello, > > I'm looking for an existing tool, idea ... to localize a webapplication for > different languages. > > At the moment I have a directory structure, that calls different language > dependent inc-files from a "en"-dir, a "de"-dir and so on. The big > disadvantage is, that some of the business logic is inbetween the language > dependent files. If I have some changes or bug-fixes in the existing > applications I have to change them in all language dependent subdirs. > > (Is there a way, to do this with xml?) > > Many thanks for all hints > Juergen > ----------------------------- > Juergen Kaatz > WWE e-commerce IT GmbH > Eiffestrasse 462 > 20537 Hamburg > URL: http://www.e-commerceit.de/ > URL: http://www.iets.de/ (Internet Export Trading System) > kaatz <email protected> > Tel: +49-40-2530659-32 > Tel. +49-40-2530659-0 (Zentrale) > E-Mail : kaatz <email protected> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe <email protected> > For additional commands, e-mail: php-general-help <email protected> > To contact the list administrators, e-mail: php-list-admin <email protected> >

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>