search
HomeSoftware TutorialComputer SoftwareHow to solve the problem that Chrome cannot translate this webpage

Google Chrome is an easy-to-use browsing software with powerful functions and a built-in translation function to facilitate users to browse foreign language pages. However, recently some users have reported that the built-in translation function cannot be used and they don’t know what’s going on. , in response to this problem, this article brings a detailed solution, share it with everyone, let’s take a look. How to solve the problem that Chrome cannot translate this web page? Method 1: Install a third-party translation plug-in for the Chrome browser (such as Tencent Translate, etc., you can search for which translation plug-in is better), search for the relevant plug-in in the Chrome browser's app store, and then install it. Method 2: Modify the computer’s hosts file (highly recommended). The IP addresses used by Google’s relevant websites operating in China are all shared, including the Google Translate business. Therefore, after finding the Google server IP address that is still available in China, Add it to the hosts file of the operating system so that it maps to the domain name used by the Google Translate API, and the Chrome translation function can be used normally. The specific operation method is as follows: The first step is to obtain the Google server IP address. Click the magnifying glass icon in the lower left corner of the computer to bring up the search function, then enter "Command Prompt" in the search bar, search for the "Command Prompt" application and click to open it.

Chrome谷歌浏览器无法翻译此网页怎么解决

Open the "Command Prompt", enter the following command and press Enter: nslookup google.cn can obtain information similar to the picture below, in which the last line is the available IP address:

Chrome谷歌浏览器无法翻译此网页怎么解决

Step 2: Modify the Hosts file

Do you need to modify the Hosts file on your computer, but are troubled by system permission restrictions? In Windows operating systems, the Hosts file is a system file, so you need to be a system administrator to edit or modify it. PHP editor Xiaoxin will guide you here on how to obtain system administrator permissions, easily enable editing permissions on the Hosts file, and solve your problem. The following content will detail the steps to obtain system administrator rights and edit the Hosts file to help you solve the problem efficiently.

Specific steps:

  1. Click the Windows icon in the lower right corner to open all programs.
  2. Find "Notepad" in "Windows Accessories".
  3. Right-click and select "More" > "Run as administrator".

    Chrome谷歌浏览器无法翻译此网页怎么解决

    Open the hosts file in Notepad. The steps are as follows: "File" - "Open" at the top of Notepad to open the hosts file according to the path. hosts file path C: WindowsSystem32driversetchosts

    Chrome谷歌浏览器无法翻译此网页怎么解决

    Note: The Notepad program only displays text files by default. You need to select "File Type" as All to see the hosts file.

    Chrome谷歌浏览器无法翻译此网页怎么解决

    Combine the IP you obtained and the domain name of the Google Translate API into a hosts rule, and add it to the last line of the hosts file. After saving the file, restart the computer and restart the Chrome translation function to resume normal use.

hosts rules (copy these 2 rules to the last line in the hosts file)

  1. 203.208.41.34 translate.google.com
  2. 203.208.41.34 translate.googleapis.com

    Chrome谷歌浏览器无法翻译此网页怎么解决

    Note: The IP may change in the future If it fails, you just need to follow the above method to get the modification again.

macOS system

The method to obtain available IP in macOS system is to open "Terminal", enter the following command and press Enter:

<code>nslookup google.cn</code>

If the Internet connection is normal, you can obtain information similar to the following, where the last One line is the available IP addresses:

<code>Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.cn
Address: 180.163.151.34</code>

Since the hosts file is a system file, editing it requires administrator status. It is recommended to open the hosts file as an administrator through the vim editor that comes with the system. The specific method is to run the following command on the terminal and press Enter. After the password prompt appears, enter the login password you set for the current account and press Enter to open it.

<code>sudo vim /etc/hosts</code>

Finally, as shown below, combine the IP you obtained and the domain name of the Google Translate API into a hosts rule, and add it to the last line of the hosts file. After saving the file, the Chrome translation function can resume normal use. .

<code>180.163.151.34 translate.googleapis.com</code>

添加的具体方法为,先按住【Shift】键,然后双击字母【G】键,将文本光标定位到最后一行,然后按字母【O】键进入插入模式,将上述规则输入(或粘贴)进来。最后按【Esc】键退出插入模式,输入 :x 保存并退出 vim 编辑器。文件保存成功后,Chrome 翻译功能即可恢复正常。

如果今后想要删掉添加的这条规则,和添加时的操作一样,打开 hosts 文件将其删除即可。

The above is the detailed content of How to solve the problem that Chrome cannot translate this webpage. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
how to unlink rockstar account from steamhow to unlink rockstar account from steamMar 11, 2025 pm 07:39 PM

This article explains how to unlink a Rockstar Games Social Club account from Steam. The process involves using the Rockstar Games Launcher to manage linked accounts, removing the Steam connection without impacting game progress or future Steam purc

[PROVEN] Steam Error e87 Fix: Get Gaming Again in Minutes![PROVEN] Steam Error e87 Fix: Get Gaming Again in Minutes!Mar 18, 2025 pm 05:56 PM

Article discusses causes of Steam Error e87, including network issues, security software, server problems, outdated clients, and corrupted files. Offers prevention and solution strategies.[159 characters]

why is steam downloading so slowwhy is steam downloading so slowMar 11, 2025 pm 07:36 PM

Slow Steam downloads stem from various factors: network congestion (home or ISP), Steam/game server issues, limited bandwidth, high latency, and computer hardware limitations. Troubleshooting involves checking internet speed, optimizing Steam settin

Steam Error e87: What It Is & How to Fix ItSteam Error e87: What It Is & How to Fix ItMar 18, 2025 pm 05:51 PM

Steam Error e87 occurs during Steam client updates or launches due to connection issues. Fix it by restarting devices, checking server status, changing DNS, disabling security software, clearing cache, or reinstalling Steam.

Easy Fix: Steam Error e87 Explained & SolvedEasy Fix: Steam Error e87 Explained & SolvedMar 18, 2025 pm 05:53 PM

Steam Error e87, caused by connectivity issues, can be fixed without reinstalling by restarting, checking internet, and clearing cache. Adjusting Steam settings helps prevent future occurrences.

how to add page numbers in google docshow to add page numbers in google docsMar 14, 2025 pm 02:57 PM

The article details how to add, customize, start from a specific page, and remove page numbers in Google Docs using step-by-step instructions.

How to Fix Steam Error Code e87: The ULTIMATE GuideHow to Fix Steam Error Code e87: The ULTIMATE GuideMar 18, 2025 pm 05:51 PM

Article discusses fixing Steam Error Code e87, caused by network issues, corrupt files, or client problems. Provides troubleshooting steps and prevention tips.

Steam Error e87: Why It Happens & 5 Ways to Fix ItSteam Error e87: Why It Happens & 5 Ways to Fix ItMar 18, 2025 pm 05:55 PM

Steam Error e87 disrupts gaming on Steam due to connectivity issues. The article discusses causes like unstable internet and server overload, and offers fixes like restarting Steam and checking for updates.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment