Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2004, 09:00 AM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Language Converter

I am developing a site in PHP for a social organization.
This will be in more than 10 different languages.How can i convert the same page's text into another language e.g. english to french or viceversa.

sunil
 
Old July 1st, 2004, 09:24 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I don't know if there is a way to do this with PHP.... The best thing I can think of is to provide a link to run your page through the Google Translator.

HTH,

Snib

<><
 
Old July 1st, 2004, 10:48 AM
Authorized User
 
Join Date: Jun 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

one way would be to translate the text into those ten languages, put each in a seperate file, give the user a choice of language on the index page, then include one of those files based on what language the user has chosen.

it'd take some work with the translating, but the mechanics of it (ie, the php programming) should be pretty straight-forward. and, as a bonus, you'd have a much lesser chance of translation goof-ups which the automated translaters are prone to.
 
Old July 1st, 2004, 11:19 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Actually, you could run the page through an automatic translator to get those other nine pages..... But like Hallgrimur has stated, they do have bugs and imperfections.

Snib

<><
 
Old July 11th, 2004, 10:26 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

You could try a PEAR internationalization package. http://pear.php.net/packages.php


Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
Base Converter iceman90289 C++ Programming 1 July 9th, 2008 07:44 PM
Image Converter ehabinl C++ Programming 0 October 8th, 2006 01:25 AM
converter anukagni ASP.NET 1.0 and 1.1 Basics 1 August 28th, 2006 07:43 AM
C program Currency Converter lgschulz C++ Programming 1 July 1st, 2003 01:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.