Does Google change the language of my site in the indexing process?

0

Does Google modify the culture info of the site in the indexing process? I noticed that on my page that has two languages, Google indexes only the PT-BR version that is native to the site.

Some information:

My site runs on an IIS server, is developed in ASP.NET MVC5, internationalization occurs through resources which is a platform feature.

The change of language occurs through a button that requests the language change of the page through cookie and my server uses the cookie to change CultureInfo :

<a href="/Home/ChangeCulture?lang=pt-br">Português</a>

<a href="/Home/ChangeCulture?lang=en-us">Inglês</a>

Switch CultureInfo through the Cookie.

Thread.CurrentThread.CurrentCulture = new CultureInfo(languageCookie.Value)

    
asked by anonymous 27.11.2017 / 16:31

1 answer

2

Google search by region, in case your probable region should return as being Brazil then the results will be in Portuguese, so when you browse the results you are likely to only return the links with ?lang=pt-br

However you can search in Google in English, you will need to modify the settings like this:

  

ThenintheendlookforUnitedStates:

  

Andclicksave,thengobacktogoogle.compagewillappearthis:

  

Clickonthelink:English,readyallresultswillcomefromGoogleinEnglish,thenifthelinksareindexedcorrectlywillreturnwithcertaintythe?lang=en-us

Butitislikelythatthiswillonlyworkifalllinkscontain?lang=....,incaseofcookiesIcannotsay,butIthinkitwillonlyindexthepreferred,asImentionedinthecomments.

Agoodlinkonthesubject(quotedby@Randrade)wouldbethis link , the link itself quotes:

  

Make sure that each version in another language can be easily discovered

     

Keep the content for each language in separate URLs. Do not use cookies to display translated versions of the page. Consider using cross-links for each version in another language on a page. Thus, a French user accessing the German version of your page can see the version in the right language with a single click.

In other words, links are better than just using cookies to check, so this is what will work:

  • http://site.com/pt-br
  • http://site.com/pt-br/foo
  • http://site.com/pt-br/bar
  • http://site.com/pt-br/foo/bar/baz
  • http://site.com/en-us
  • http://site.com/en-us/foo
  • http://site.com/en-us/bar
  • http://site.com/en-us/foo/bar/baz

Or this:

  • http://pt.site.com
  • http://pt.site.com/foo
  • http://pt.site.com/bar
  • http://pt.site.com/foo/bar/baz
  • http://en.site.com
  • http://en.site.com/foo
  • http://en.site.com/bar
  • http://en.site.com/foo/bar/baz
27.11.2017 / 18:03