i have a news script
and it multi language ..
i want detect automaticlly the language of the visitor ...
i found more questions here about get the country from javascript timezone
them problem was because more citis is Similar time
" I DONT WANT DETECT COUNTRY " <- if that hard to get it !
only language !
so , what is the best way to get the visitor language or country by javascript ?
i don't understand javascript ever ! , and can't know what you can do by javascript
my two ideas is ..
first idea
get the time of visitor
example
EG = 0300
and in php i make an array contain ('0200'=>'Egypt') and another array ('Egypt'=>'AR')
second idea
in my clock time zone box , i see
Time Zone : Cairo <- egypt
can we get the name ?
Thank you !