149

I know that this isn't exactly programming question, but it is tightly related -

How the hell do I set MSDN to display everything in English? I'm Czech, and every KB or documentation article it automatically translates it to Czech with their translator, which result just in gibberish, and switching it to English requires couple of searching and clicks.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
nothrow
  • 15,882
  • 9
  • 57
  • 104
  • 8
    Are you hitting links to MSDN through a search engine, like Google? It may well be the case that this is the perpetrator, in which case you can stop Google (for instance) guessing your locale and specify desired languages using `Search Settings`. – Grant Thomas Mar 11 '11 at 14:59
  • I don't get this problem, although I live in germany, once I changed the language (in the top left corner, took 2 clicks), it has always stayed in English. Maybe you have cookies disabled? – Hannesh Mar 11 '11 at 15:01
  • @Beachwalker, This is case for every browser. Opera/Chrome, usually. One thing - I've got english OS, english settings, but it still realizes i'm connecting from czech IP. – nothrow Mar 13 '13 at 19:31
  • 2
    I've changed `Which language should Google products use?` to English like @GrantThomas said and Google has started to show msdn links for en-US culture. Until this `Currently showing search results in` setting have my local language (Ukranian) and it was not possible to uncheck it. – oleksa Apr 08 '14 at 12:38
  • 1
    Cannot upvote this enough... – Chuck Apr 22 '16 at 15:40

10 Answers10

61

I wrote a simple dedicated browser extension for this. Unlike the Redirector plugin, no configuration is required.

It's called "FFS MSDN in English" and is available for:

It simply redirects any localised MSDN (or docs.microsoft) page to the english (en-us) version.

The rather trivial sources can be found at https://github.com/AirLancer/ffs_msdn_in_english

AirLancer
  • 1,258
  • 12
  • 19
  • 5
    Still working perfectly fine. Would it be possible to update the extension and add azure.microsoft.com to the domains list? – ken2k Dec 11 '18 at 14:53
  • 2
    Might be a good Christmas vacation project. I'm thinking about moving the Icon to the URL bar when you visit the site instead of displaying it permanently. Any thoughts on that? – AirLancer Dec 12 '18 at 12:06
  • 1
    I like the icon in the URL bar idea. Closer to the actual domain. – Squirrelkiller Apr 04 '20 at 07:43
  • 2
    reactivated my account just too make a +1 for this addon... Hope somebody at microsoft reads this. Hopefully the same person who made seperators in CSV ; instead of , in german or made localized incompatible excel macros – Michael P Jun 10 '22 at 14:00
  • Great extension, however I find it extremely ridiculous that we need it in the first place. – szafir Jul 14 '22 at 09:44
  • Too bad though you don't reply to issues on the github page (anymore). – kipusoep Nov 01 '22 at 15:34
  • @kipusoep my bad. I started with the PRs yesterday but my laptop had an update in the middle of it. I'll try again tonight. – AirLancer Nov 02 '22 at 16:44
53

Very legitimate question, I think.

You need to modify the url like explained here. In your case change cz-cz to en-us.

Or better, let it do a browser plugin like Redirector for firefox:

Redirector plugin set to force English msdn pages

Community
  • 1
  • 1
thomiel
  • 2,467
  • 22
  • 37
  • 32
    I use [Redirector for Chrome](https://chrome.google.com/webstore/detail/redirector/pajiegeliagebegjdhebejdlknciafen) and have this: `http([s]?):\/\/(docs|msdn)\.microsoft\.com\/es-es\/(.*)` to `http$1://$2.microsoft.com/en-us/$3` – Jcl Jan 21 '18 at 20:00
28

MSDN Set Language

You can select your default language from bottom left of the page.

Edit

New docs site has an easier option to view in English. However, the setting is not permanent.

Microsoft Docs View in English

Yusuf Tarık Günaydın
  • 3,016
  • 2
  • 27
  • 41
  • 10
    But you need to do this every time, are there settings which always apply? maybe with an microsoft account? –  Feb 19 '16 at 07:18
2

I've fixed it by installing a redirector plugin for chrome: http://bendavis78.github.io/chrome-extension-redirector/

Andrea Maruccia
  • 198
  • 1
  • 5
2

If you are using Google search, you need to change language preferences for Google itself (you don't need to be logged in)1:

  1. Go to https://google.com
  2. Click Settings > Search settings on the bottom right corner.
  3. Proceed to Languages tab.
  4. Choose English as preferred.

1 You might also need to do what pr0gg3r and Beachwalker advise.

Jon
  • 159
  • 2
  • 5
1

One solution is to rewrite google's search engine links using this Tampermonkey userscript:

// ==UserScript==
// @name         Fix learn.microsoft.com links on google.com
// @description  Changes all links to en-us versions.
// @include      /^http[s]?:\/\/(www\.)?google\.[a-z]{2,3}\/.*$/
// @noframes
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let re = /^(https?:\/\/(docs|msdn).microsoft.com)\/(\w+\-\w+)\/(.*)/i;
    const links = document.querySelectorAll("a");
    for (const link of links) {
        let m = re.exec(link.href);
        if (!m) continue;
        const clone = link.cloneNode(true);
        clone.removeAttribute('onmousedown');
        clone.href = `${m[1]}/en-us/${m[4]}`;
        link.replaceWith(clone);
    }
})();

Edit 2021-01-28: Remove onmousedown attribute event from link. Stops link capture and substitution of google's own redirect link.

kzaw
  • 855
  • 11
  • 7
  • Use "// @include /^http[s]?:\/\/(www\.)?google\.[a-z]{2,3}\/.*$/" instead of match. Yours match catch ".com" google only. – Mabakay Feb 14 '21 at 07:58
  • 1
    @Mabakay Thanks, i updated my response. I've also added @@noframes to stop activation in google iframes. – kzaw Feb 16 '21 at 15:33
0

I do not want to use extensions because I consider their required permissions to be a major security risk. Furthermore MSDN is not the only site where translations sucks. So for me the best solution was to change the language settings in Windows 10. Add English to your "Preferred languages" and set it to be 1st. Apps and websites will appear in the first language in the list that they support.

enter image description here

pr0gg3r
  • 4,254
  • 1
  • 36
  • 27
  • This does make en-US the default if you navigate to microsoft docs, but when you do a websearch for ms content you easily get stuck with a different language (typically your browser language). A common situation that AirLancer's "FFS MSDN in English" plugin handles perfectly. – TvdH Mar 15 '20 at 07:48
0

I like to have the choice between the translated and en-us version. I authored the following UserScript... to be used in TamperMonkey for instance.

It does what it pretends in the @description.

// ==UserScript==
// @name         Link to MSDN in en-us
// @description  Adds a link in the top left corner of the translated MSDN pages allowing to jump to en-us version.
// @match        http*://learn.microsoft.com/*
// @match        http*://msdn.microsoft.com/*
// ==/UserScript==

(function() {
    'use strict';
    let url = location.href;
    let rx = /^http([s]?):\/\/(docs|msdn)\.microsoft\.com\/(\w+\-\w+)\/(.*)$/i;
    let match;
    if ( match = rx.exec(url) ) {
        if (match[3] !== 'en-us') {
            var targetUrl = url.replace(rx, "http$1://$2.microsoft.com/en-us/$4");
            jQuery("body").prepend(
                jQuery('<a>en-us</a>').attr('href', targetUrl)
            );
        }
    }
})();
Myobis
  • 1,347
  • 16
  • 27
0

In Firefox > Settings > "Language and Appearance" section there is below some Language settings a button next to a label that says:

"Choose your preferred language for displaying pages"

There you can setup a ordered list of languages. I have added english and moved it to the top of the list. Now after a restart the same, previously opened msdn links do not auto translate.

t0b4cc0
  • 319
  • 4
  • 19
-2

I don't know the browser you're using but most browsers send info about the client to the server (incl. preferred language). So one option might be to set the default language to english (as done here for Firefox).

Beachwalker
  • 7,685
  • 6
  • 52
  • 94
  • 1
    Seems that it looks at the ip only. I removed all the languages from my "languages" chrome setting, but msdn still was showing me russian version. – Serhii Kheilyk Apr 18 '16 at 08:10