


How 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.
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:
- Click the Windows icon in the lower right corner to open all programs.
- Find "Notepad" in "Windows Accessories".
- Right-click and select "More" > "Run as administrator".
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
Note: The Notepad program only displays text files by default. You need to select "File Type" as All to see the hosts file.
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)
- 203.208.41.34 translate.google.com
- 203.208.41.34 translate.googleapis.com
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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.

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.

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

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.

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.

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.

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.

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.
