Hmmmm, This seems to be harder than I thought! Thanks everyone for there help!
Carl this IBM international thing is very interesting, and many thanks for telling me about it. Just think it is a lot of work, especially since I want my site to be on in January, not sure I can manage this with my other tasks. I will try and research it and maybe use it in the future. Im probably going to use the Get Text, that Moriyoshi mentioned. Thanks! Basically Im an ameture at this international stuff, Iv'e never worked on an international project and no idea where to start. I could really do with some advice. I am hosting my site in Germany, and need to know what to tell the server admin people. What should I tell them about MySQL and Apache and PHP set up please (on linux). And for my website, I assumed that you just alter the doctype say from <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> (im using 3.2 but had this to hand!) to the equivalent French one. Is this wrong? Do I need to specfy character sets and encoding?? Many Thanks, Steve > 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 > -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php