如何设置MSDN始终为英文

发布于 2024-10-21 21:48:33 字数 121 浏览 2 评论 0原文

我知道这不完全是编程问题,但它是紧密相关的 -

我到底如何设置 MSDN 以英语显示所有内容?我是捷克人,每一篇知识库或文档文章都会通过翻译器自动翻译为捷克语,这只会导致乱码,而将其切换为英语需要几次搜索和点击。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

何其悲哀 2024-10-28 21:48:33

我为此编写了一个简单的专用浏览器扩展。与重定向器插件不同,不需要配置。

它称为“英文版 FFS MSDN”,可用于:

它只是重定向任何本地化的MSDN(或 docs.microsoft)页面到英语(en-us)版本。

相当琐碎的来源可以在 https://github.com/AirLancer/ffs_msdn_in_english 找到

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

不打扰别人 2024-10-28 21:48:33

我认为这是非常合理的问题。

您需要按照此处。根据您的情况,将 cz-cz 更改为 en-us。

或者更好的是,让它做一个浏览器插件,例如 Firefox 的 Redirector:

Redirector plugin set to强制英文 msdn 页面

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

天冷不及心凉 2024-10-28 21:48:33

MSDN 设置语言

您可以从页面左下角选择默认语言。

编辑

新文档网站提供了更方便的英文查看选项。但是,该设置不是永久的。

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

梨涡 2024-10-28 21:48:33

我通过安装 chrome 重定向器插件修复了这个问题:
http://bendavis78.github.io/chrome-extension-redirector/

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

离旧人 2024-10-28 21:48:33

如果您使用 Google 搜索,则需要更改 Google 本身的语言首选项(无需登录)1

  1. 转到 https://google.com
  2. 点击“设置”>“右下角的搜索设置。
  3. 进入语言选项卡。
  4. 选择英语作为首选。

1 您可能还需要执行 pr0gg3r海滩漫步者建议。

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.

怀中猫帐中妖 2024-10-28 21:48:33

一种解决方案是使用以下 Tampermonkey 用户脚本重写 google 的搜索引擎链接:

// ==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);
    }
})();

编辑 2021-01-28:从链接中删除 onmousedown 属性事件。停止链接捕获和替换谷歌自己的重定向链接。

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.

世态炎凉 2024-10-28 21:48:33

我不想使用扩展程序,因为我认为它们所需的权限是一个主要的安全风险。此外,MSDN 并不是唯一一个翻译糟糕的网站。所以对我来说,最好的解决方案是更改 Windows 10 中的语言设置。将英语添加到“首选语言”中并将其设置为第一。应用程序和网站将以它们支持的列表中的第一种语言显示。

输入图片此处描述

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

放我走吧 2024-10-28 21:48:33

我喜欢在翻译版本和en-us版本之间进行选择。
我编写了以下 UserScript...,例如用于 TamperMonkey 中。

它执行@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)
            );
        }
    }
})();

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)
            );
        }
    }
})();
娇妻 2024-10-28 21:48:33

在火狐浏览器中>设置> “语言和外观”部分在一些语言设置下方有一个标签旁边的按钮,上面写着:

“选择显示页面的首选语言”,

您可以在其中设置有序的语言列表。我添加了英语并将其移至列表顶部。
现在重新启动后同样,之前打开的 msdn 链接不会自动翻译。

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.

伏妖词 2024-10-28 21:48:33

我不知道您正在使用的浏览器,但大多数浏览器都会将有关客户端的信息发送到服务器(包括首选语言)。因此,一种选择可能是将默认语言设置为英语(如此处为 Firefox 所做的那样)。

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文