Home Software Tutorial Computer Software How to solve the problem that Chrome cannot translate this webpage

How to solve the problem that Chrome cannot translate this webpage

Jul 22, 2024 pm 12:13 PM

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

添加的具体方法为,先按住【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 of this Website
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

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How much does Microsoft PowerToys cost? How much does Microsoft PowerToys cost? Apr 09, 2025 am 12:03 AM

Microsoft PowerToys is free. This collection of tools developed by Microsoft is designed to enhance Windows system functions and improve user productivity. By installing and using features such as FancyZones, users can customize window layouts and optimize workflows.

Does PowerToys need to be running? Does PowerToys need to be running? Apr 02, 2025 pm 04:41 PM

PowerToys needs to be run in the background to achieve its full functionality. 1) It relies on system-level hooks and event listening, such as FancyZones monitoring window movement. 2) Reasonable resource usage, usually 50-100MB of memory, and almost zero CPU usage when idle. 3) You can set up power-on and use PowerShell scripts to implement it. 4) When encountering problems, check the log files, disable specific tools, and ensure that they are updated to the latest version. 5) Optimization suggestions include disabling infrequently used tools, adjusting settings, and monitoring resource usage.

What is the best alternative to PowerToys? What is the best alternative to PowerToys? Apr 08, 2025 am 12:17 AM

ThebestalternativestoPowerToysforWindowsusersareAutoHotkey,WindowGrid,andWinaeroTweaker.1)AutoHotkeyoffersextensivescriptingforautomation.2)WindowGridprovidesintuitivegrid-basedwindowmanagement.3)WinaeroTweakerallowsdeepcustomizationofWindowssettings

What is the purpose of PowerToys? What is the purpose of PowerToys? Apr 03, 2025 am 12:10 AM

PowerToys is a free collection of tools launched by Microsoft to enhance productivity and system control for Windows users. It provides features through standalone modules such as FancyZones management window layout and PowerRename batch renaming files, making user workflow smoother.

Does Microsoft PowerToys require a license? Does Microsoft PowerToys require a license? Apr 07, 2025 am 12:04 AM

Microsoft PowerToys does not require a license and is a free open source software. 1.PowerToys provides a variety of tools, such as FancyZones for window management, PowerRename for batch renaming, and ColorPicker for color selection. 2. Users can enable or disable these tools according to their needs to improve work efficiency.

How do I download Microsoft PowerToys? How do I download Microsoft PowerToys? Apr 04, 2025 am 12:03 AM

The way to download Microsoft PowerToys is: 1. Open PowerShell and run wingetinstallMicrosoft.PowerToys, 2. or visit the GitHub page to download the installation package. PowerToys is a set of tools to improve Windows user productivity. It includes features such as FancyZones and PowerRename, which can be installed through winget or graphical interface.

Is PowerToys part of Windows 11? Is PowerToys part of Windows 11? Apr 05, 2025 am 12:03 AM

PowerToys is not the default component of Windows 11, but a set of tools developed by Microsoft that needs to be downloaded separately. 1) It provides features such as FancyZones and Awake to improve user productivity. 2) Pay attention to possible software conflicts and performance impacts when using them. 3) It is recommended to selectively enable the tool and periodically update it to optimize performance.

Is Microsoft PowerToys free or paid? Is Microsoft PowerToys free or paid? Apr 06, 2025 am 12:14 AM

Microsoft PowerToys is completely free. This tool set provides open source utilities that enhance Windows operating system, including features such as FancyZones, PowerRename, and KeyboardManager, to help users improve productivity and customize their operating experience.

See all articles