473,325 Members | 2,816 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,325 software developers and data experts.

Language recognition

Okay, this trick could be seen on GOOGLE, if your system's default language
is not English. If it is, for example, Russian, GOOGLE automaticaly
recognizes it and loads all the links and the such (the interface in other
words) in Russian.

My question: if and how it could be done, using PHP?

Thank you in adavance.

----------------------
Oh boi! It's root-boy!
Jul 17 '05 #1
2 1895
root-boy wrote:
Okay, this trick could be seen on GOOGLE, if your system's default language
is not English. If it is, for example, Russian, GOOGLE automaticaly
recognizes it and loads all the links and the such (the interface in other
words) in Russian.

My question: if and how it could be done, using PHP?


The Accept-Language header can restrict "the set of natural languages
that are preferred as a response to [a] request" (RFC2616, sec.
14.4).

http://www.ietf.org/rfc/rfc2616.txt

--
Jock
Jul 17 '05 #2
"root-boy" <jh*@hot.ee> wrote in message news:<Xn*********************@194.126.101.124>...
Okay, this trick could be seen on GOOGLE, if your system's default language
is not English. If it is, for example, Russian, GOOGLE automaticaly
recognizes it and loads all the links and the such (the interface in other
words) in Russian.

My question: if and how it could be done, using PHP?


You mean browser's language detection? If so, try

print_r($_SERVER);
echo $_SERVER['HTTP_ACCEPT_LANGUAGE'];

If you ask, detecting the language of texts that inputted in a form,
sorry.. I don't know. Once I was searching for such stuff, but
couldn't find anything.

--
"Democracy: Where all citizens are politicians and all politicians
are citizens"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: CJ Oxx | last post by:
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta...
0
by: Stephen.B | last post by:
Hi All, Many thanks to those who assisted with my previous posting regarding image file manipulation from a scanner - with your help, i have now put together a solid solution to that problem. ...
1
by: Junior | last post by:
Hi guys. I want to incorporate voice recognition in a new .NET application I'm developing. I would like to recognize among a group of 30-40 words. But I would also like to avoid using 3dr party...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
1
by: Meena | last post by:
In our company we are trying to add speech recognition to our products. I downloaded the Speech Recognition engine. Now there is a component called Microsoft Direct Speech Recognition in VB.Net...
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
4
by: Ian Dickinson | last post by:
Hi My name is Ian Dickinson and I am a professional software developer working in the UK and reasonably familiar with Python. However a friend of mine who is a special educational needs teacher...
0
by: kalroche | last post by:
looking for expertise on a speech recognition project for thesis presentation My intention is to have speech recognition for product location for a grocery stores. What would be the best database...
1
by: deluxmilkman | last post by:
Is it possible to integrate Mac`s built in speech recognition feature ()or any other speech recognition software) into flash? I am trying to make a speech recognition based flash application. It...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll 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
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.