Re: localisation in web applications
| From: | Juergen Kaatz | Date: | Tue, 19 Dec 2000 09:35:28 +0000 |
| Subject: | Re: localisation in web applications | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31010@lists.php.net to get a copy of this message | ||
Hello Alex,
>I have thought about doing it a couple of ways with binarycloud (though I
>have not had the opportunity to do so):
I will have a look at binarycloud the next days. Our project is in a final
state now and I think it is not very easy to adapt the application in a new
environment. So this way is not very comfortable for me now. But thank you
for the hint.
>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's the way I thought about: building arrays which contain all the
language dependent strings and so on. The idea is to give a extracted
language file to a translator (someone who don't have knowledge about
programming, php ...) and get back a translated file. Unfortunately the
file have to be mixed with php-code, defining variables/arrays etc. . So I
don't have a really extracted php-independent file. That's the reason why I
thought about xml. With xml - that's my idea - I can extract all strings
from my application, put it in a xml representation. Then I can use the
ability from xml to present the strings in a different way for a better
translation.
I you have any hints about this idea, please let me know.
Greetings Juergen (please excuse my english)
>--
>Alex Black, Head Monkey
>enigma@turingstudio.com
>
>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@e-commerceit.de (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@e-commerceit.de
>> Tel: +49-40-2530659-32
>> Tel. +49-40-2530659-0 (Zentrale)
>> E-Mail : kaatz@e-commerceit.de
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-general-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
-----------------------------
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@e-commerceit.de
Tel: +49-40-2530659-32
Tel. +49-40-2530659-0 (Zentrale)
E-Mail : kaatz@e-commerceit.de