Steve,

A couple of years ago I developed extensions for PHP that sound like what
you want.  It used ICU http://oss.software.ibm.com/icu/ to provide the i18n
services for PHP.

First it also provided an override to the Apache mod_mime services to allow
it to work like other web servers and allow you to put different language
web pages in different subdirectories rather than require a language type on
each page.  You can have it override just certain types such as .php pages
only.

This way you can have:

 ../site/en/contents/page.php
 ../site/fr/contents/page.php

or full locales

 ../site/en-uk/contents/page.php
 ../site/en-us/contents/page.php
 ../site/en-ca/contents/page.php
 ../site/fr-fr/contents/page.php
 ../site/fr-ca/contents/page.php

It sets the locale on a per transaction bases.  It will not only work with
Unicode with ICU but it will also work in code pages.

You can have a terminal using Shift-JIS and Japanese pages in EUC and access
a UTF-8 database.  The same code will work with any code page or Unicode.

You can see code that I derived from the ICU interface portion of the code
at http://www.xnetinc.com/xiua/

The PHP changes also included a way to support charset more dynamically.

Carl








> -----Original Message-----
> From: Steve Vernon [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 24, 2002 7:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-I18N] Multiple Languages
>
>
> Hiya,
>     I'm working on my first international PHP project, which is a
> site that
> displays differently in different languages. So I guess this is
> the place to
> ask adive.
>
>     Ive done the code with flags etc so people can select the
> country and so
> the language. But im not sure about the best way to handle the text and
> things such as meta tages.
>
>     My origional idea was to have multiple include files named
> like uk.php,
> french.php with seperate variables for the text parts, or do sommat in XML
> which is basically the same.
>
>     I cant find any sources on the net about best ways to do a site like
> this.
>
>     Help!
>
>     Thanks,
>
>     Steve
>
>
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to