Title: Ls Gtrans Widget
Author: lenasterg
Published: <strong>2015 年 7 月 13 日</strong>
Last modified: 2026 年 2 月 20 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/ls-gtrans-widget.svg)

# Ls Gtrans Widget

 作者：[lenasterg](https://profiles.wordpress.org/lenasterg/)

[下载](https://downloads.wordpress.org/plugin/ls-gtrans-widget.2.2.1.zip)

 * [详情](https://cn.wordpress.org/plugins/ls-gtrans-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/ls-gtrans-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/ls-gtrans-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/ls-gtrans-widget/#developers)

 [支持](https://wordpress.org/support/plugin/ls-gtrans-widget/)

## 描述

Do you need a simple way to add Google Translate to your WordPress site? If WordPress
security restrictions prevent you from embedding translation scripts, this plugin
is the solution.

The **Ls Gtrans Widget** adds a select box to your sidebar, allowing visitors to
translate the current page into over 25 European languages using Google Translate.
Once a user selects a language, the translation opens in a new tab at [Google Translate](https://translate.google.com/).
The original language is auto-detected.

### Key Features:

 * Over 25 European languages supported.
 * Multisite ready.
 * No coding required—just drag and drop the widget to your sidebar.

## 屏幕截图

[⌊Widget settings screen: Configure the widget title in the WordPress admin.⌉⌊Widget
settings screen: Configure the widget title in the WordPress admin.⌉[

**Widget settings screen**: Configure the widget title in the WordPress admin.

[⌊Widget in frontend: The select box displayed on a website sidebar.⌉⌊Widget in 
frontend: The select box displayed on a website sidebar.⌉[

**Widget in frontend**: The select box displayed on a website sidebar.

## 安装

 1. Upload the `ls_gtrans_widget` folder to the `/wp-content/plugins/` directory, or
    install it directly via the WordPress plugin repository.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to your Widgets page (`Appearance > Widgets`) and drag the **Translation in 
    Google** widget to your desired sidebar or widget area.
 4. Customize the widget title if needed, and you’re done!

## 常见问题

### Can I use this plugin on a multisite installation?

Yes, the plugin is multisite compatible.

### Does the plugin work with non-European languages?

This version supports over 25 European languages. For adding or removing languages,
use `ls_gtrans_available_languages` filter.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Ls Gtrans Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ lenasterg ](https://profiles.wordpress.org/lenasterg/)
 *   [ nts ](https://profiles.wordpress.org/nts/)

[帮助将「Ls Gtrans Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ls-gtrans-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ls-gtrans-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/ls-gtrans-widget/)，或通过[RSS](https://plugins.trac.wordpress.org/log/ls-gtrans-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ls-gtrans-widget/)。

## 更新日志

#### 2.2.1

 * Accessibility fix

#### 2.2.0

 * Accessibility fixes
 * Extensibility, Added `ls_gtrans_available_languages` filter hook to allow developers
   to add or remove languages programmatically.

#### 2.1.1

 * Fix a typo

#### 2.1

 * WordPress 6.7.1 compatibility check

#### 2.0.1

 * Replaced a deprecated function for improved compatibility.

#### 2.0

 * Verified compatibility with WordPress 6.1.1 and PHP 8.1+.
 * Improved code to align with WordPress coding standards.

#### 1.2

 * Added compatibility check for WordPress 4.9.

#### 1.1

 * Replaced the deprecated `$this->WP_Widget` call.
 * Fixed typos in code and descriptions.

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **2.2.1**
 *  最后更新：**4 月前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/ls-gtrans-widget/)
 * 标签
 * [google translate](https://cn.wordpress.org/plugins/tags/google-translate/)[language switcher](https://cn.wordpress.org/plugins/tags/language-switcher/)
   [translation](https://cn.wordpress.org/plugins/tags/translation/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/ls-gtrans-widget/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/ls-gtrans-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ls-gtrans-widget/reviews/)

## 贡献者

 *   [ lenasterg ](https://profiles.wordpress.org/lenasterg/)
 *   [ nts ](https://profiles.wordpress.org/nts/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ls-gtrans-widget/)