Avatar of Robert Granlund
Robert Granlund
Flag for United States of America asked on

Seach Input translation

How are companies translating search terms on international sites.  Like GE.com
The website site uses a translation API that translates a page on the fly. The Content in the CMS is all in English.  So when someone types in a search term in Italian,  but the pages being searched are all in english, so the Italian term needs to be translated into english so the DB can be searched and appropriate results can be returned.  How do you think they are doing it?
PHPjQueryJavaScript

Avatar of undefined
Last Comment
Ray Paseur

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Julian Hansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Ray Paseur

The Content in the CMS is all in English.
It does not look that way to me, and machine translations are rarely good enough for "prime time" around the world.  I believe that GE has native language content.  Please see: http://www.ge.com/it/

See also this article on the general design for a polyglot web application.  It shows directory structures that work well, and allow for native language expansion without disrupting the existing translations.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_8910-A-Polyglot-Web-Site-in-PHP.html
Robert Granlund

ASKER
@Ray and all,
Thank you for the information.  However, let's say www.MYSITE.com has only English content.  A third party API like Transifex to translate pages on the fly.  If a person is in Germany and they use a German term in the search box, that German term will not be in the English content.  

So my question is this; how do you translate a search term into english so it returns the appropriate results?

In addition, the website knows your geo location and knows what the native language is,  so that is not an issue.
SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23