Here is what you want if you want to do both
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http(s)?://(.*\.)?google\.com/ [NC]
RewriteCond %{HTTP:Accept-Language} (ru) [NC]
RewriteRule .* http://www.google.ru [R,L]
will redirect if the refer is google and the language is russian, and will redirect to russian version of google (both have to be true or it wont redirect)
hope this helps