473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Language translation using PHP

Hi guys,

I need to know if Language translation from English to French is possible using some PHP code or something?

Thanks. :)
Mar 10 '06 #1
3 13678
Banfa
9,065 Expert Mod 8TB
Well the answer to your question is yes but I'm not sure it's very helpful.

Language translation is not a simple task, it is tempting to think that when translating a sentence from English to French all you have to do is look up the translation of every word in the sentence and replace it with it's French equivilent. However this is too simplistic a model and a translation of this sort would produce at best a sort of Pigeon French. Some of the problems that need to be over come would be

1. The translation for a give word does not necessarily have a 1-1 correspondence. For instance what is the translation of the word 'the' into French. The answer is that you can't tell I have not given enough information it will be 'un' or 'une' but which one depends on the context so in order to be able to translate the word 'the' you have to be able to consider the whole sentence (or sentence fragment) in which it occurs.

2. Word order, French and English do not always use the same that is where you get the nouns and verbs with-in a sentence.

3. In French they don't always say things in the same way that they are said in English, for instance the translation of "I'm" is "je suis" but the translation of "I'm hungry" is "J'ai faim". Translated back to English literally this is "I have hunger".

4. Coloquialisms and slang. It is notoriously hard to translate coloquialisms and slang because normally the envolve using words in different context to there normal meaning.

So to answer your question more fully, it is as possible to write language translation code in PHP as it is in any other programming language which is to say it's a nightmare :D
Mar 10 '06 #2
Thanks Banfa :) for the info provided. It was most useful. I would consider using one of the commercial language translation websites available on the internet.

Appreciate. ;)
Mar 18 '06 #3
Try http://www.phptranslator.com
The translation is done in the background through Google Translation.
Apr 10 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Gabriele Farina | last post by:
I guys I planned to create a new programming language to use to develop web applications for my company. I'd like to develop it using Python, but I don't know if python is fast enaught. ...
17
by: Andreas Koch | last post by:
Hi all, i started a little "practical language comparison" - practical in the sense that i compare how actual distributions and versions and their libraries (not abstract language...
0
by: Thiva Charanasri | last post by:
http://www.poweroflanguage.org Track: Computer Language 1st World Congress on the Power of Language: Theory, Practice and Performance Date: March 6 - 10, 2006 Bangkok, Thailand On this...
0
by: Thiva Charanasri | last post by:
http://www.poweroflanguage.org Track: Computer Language 1st World Congress on the Power of Language: Theory, Practice and Performance Date: March 6 - 10, 2006 Bangkok, Thailand On this...
2
by: Thomas W | last post by:
I'm trying to wrap my head around the docs at python.org related to the gettext-module, but I'm having some problem getting it to work. Is there any really simple, step-by-step on how to use this...
14
by: igouy | last post by:
We don't have Python implementations for one program, and a couple of the Python programs we do have show Error. http://shootout.alioth.debian.org/benchmark.php?test=all&lang=python&lang2=python...
12
by: romayankin | last post by:
I plan to write site on a few language. For this reason I'm trying to find the most convenient way to output strings depending on their unique ID. As far as I plan to have pretty much strings...
1
by: SamJohn | last post by:
Hello, I want to translate text dynamically from my VBA application with the Google translation tool. I have already figured out how to send the original text (eg in English) to the 'original text...
1
by: deegeorge | last post by:
Hi, I have implemented language translation in my website using the guidlines provided in the article "Implementing Real-Time Language Translation Using .NET Control Adapters"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.