473,320 Members | 1,914 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,320 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 13674
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.