[PHP] multi language support
Hi, Can anyone suggest the best method (plain substitution, gettext or db) for implementing a shop cart with multilanguage support?.As the cart will be hosted with multiple clients which of these approach is best for the long run, and which requires less client intervension.Also i would like to know what all should i keep in mind with before converting my scripts using gettext() if i am to use the gettext option. Thanks Arvi = --- if you aint living on the edge you're taking up too much space __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Multi Language Support
Hi all, I was wondiering what would be the best method to create a site that in the future will be in two or more languages all in PHP, MySQL and Text files. Thanks in advanced, --- Cesar Aracena [EMAIL PROTECTED] http://www.icaam.com.ar Cel: +54.299.635-6688 Tel/Fax: +54.299.477-4532 Cipolletti, Rio Negro R8324BEG Argentina --- Soluciones profesionales en Internet y Comunicaciones http://www.icaam.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Multi Language Support
Hi all, I need to know what would be the best method to build a web site using PHP, MySQL and Text files that in the future will have two or more translations. Thanks in advanced, --- Cesar Aracena [EMAIL PROTECTED] http://www.icaam.com.ar Cel: +54.299.635-6688 Tel/Fax: +54.299.477-4532 Cipolletti, Rio Negro R8324BEG Argentina --- Soluciones profesionales en Internet y Comunicaciones http://www.icaam.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Multi Language support
Hello, I have a multi-lingual site and was wondering if anyone knew of a PHP function to detetct a browser's preferred laguages. I know I can parse it in the _SEREVR var [HTTP_ACCEPT_LANGUAGE] = fr, fr-ca;q=0.75, en-us;q=0.50, en;q=0.25 But I was just wondering if somewhere PHP already had a function. Something like: var array get_lang(); where array would be: fr=0.75 fr-ca=0.75 en-us=0.50 en=0.25 Also I'm guessing that q=? is a score of some sort. With highest score being the preferred one? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Multi language support
Hi all, What needs to be done for multi language support in PHP. I am using redhat linux new to HTML programming. I want to know the mechanism to make the output available in different languages. Thanks in advance for any help --Shailendra S. Mehta Senior Engineer (Design Development), TATA Infotech Ltd, Mapusa-GOA.
Re: [PHP] Multi language support
At 24.04.2002 15:29, you wrote: Hi all, What needs to be done for multi language support in PHP. I am using redhat linux new to HTML programming. I want to know the mechanism to make the output available in different languages. Thanks in advance for any help --Shailendra S. Mehta Senior Engineer (Design Development), TATA Infotech Ltd, Mapusa-GOA. If you want to do this, one suggestions is: Have a db, where you store the text for each ouput, button, etc... under a number (in mysql autonum is your friend) copy this db, changing the textcontent in every desired language, to a new name f.e db_english, db_french now make an object, or function which requests the content of number x and disply it where it´s needed. like ? echo transtext(number,$language); ? As a hint, when incrementing the number of the text, add 10, as later you´ll need another text, and this will be put at the end of db. When making the site-scripts, don´t forget to have the original text nearby as comment. Otherwise you get mad, when you touch the code a second time. HTH Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php