Fixed that error happend when "HTTP_ACCEPT_LANGUAGE" does not exists 
and also detect the language by ip address if possible.