The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

How to restrict a Google search to results of a specific language? – Web Applications Stack Exchange

Posted by jpluimers on 2025/06/13

Note that below:

  • the two-letter language code can be either lowercase or uppercase
  • the two-letter country code needs to be UPPERCASE

[Wayback/Archive] How to restrict a Google search to results of a specific language? – Web Applications Stack Exchange (thanks [Wayback/Archive] ZygD):

There are 4 language-related options.

1. Web interface language: hl=

Example: www.google.com/search?q=vilnius&hl=lt

2. Pages in specified language: lr=lang_

Example: www.google.com/search?q=vilnius&lr=lang_lt

3. Pages originating from specified country: cr=country

Example: www.google.com/search?q=vilnius&cr=countryLT
Note that the two country code characters have to be in UPPERCASE ! Otherwise Google ignores the parameter (as of 2017-01-03) (even though lower case works fine for hl= and lr=lang_).

4. There is another parameter – gl=

for search results as they would appear in specified country. I tried testing it, but for me results were not differing for different parameter values. Maybe that’s obsolete or overwritten by some other paremeters/settings of browser or my Google account.

I needed this when writing Exporting your Twitter content, converting to Markdown and getting the image alt-texts (thanks @isotopp/@HBeckPDX/@weiglemc for the info and @kcgreenn/@dreamjar for the comic!).

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.