Title: MTCodes Translator &amp; Language Switcher
Author: Milkan Trninic
Published: <strong>2026 年 8 月 21 日</strong>
Last modified: 2026 年 8 月 21 日

---

搜索插件

![](https://ps.w.org/mtcodes-translator/assets/icon.svg?rev=3659475)

# MTCodes Translator & Language Switcher

 作者：[Milkan Trninic](https://profiles.wordpress.org/milkan2002/)

[下载](https://downloads.wordpress.org/plugin/mtcodes-translator.1.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/mtcodes-translator/)

## 描述

MTCodes Translator is a lightweight multilingual plugin with no dependencies and
no theme coupling, built by [MTCodes](https://mtcodes.com).

 * **Unlimited languages** — every non-default language is served under its own 
   URL prefix (`/bs/`, `/fr/`, `/de/`, …); the default language stays at the site
   root.
 * **Works with any builder** — the fully rendered HTML is parsed and every text
   node (plus `alt`, `title`, `placeholder`, `aria-label` and SEO meta) is swapped
   against the translations table. Strings without a translation stay in the default
   language and appear in the admin editor automatically.
 * **SEO-ready** — hreflang alternates with `x-default` on every page, self-referencing
   canonicals on translated URLs, per-language `<html lang>` and `og:locale`, translated`
   <title>` and meta description, and language variants of all pages in the core
   XML sitemap.
 * **Language switcher** — `[mtml_switcher]` shortcode, `mtml_switcher()` template
   tag, or build your own with `mtml_languages()`, `mtml_lang_url()` and `mtml_current_lang()`.
 * **Importer** — optionally imports a theme dictionary file (`inc/i18n.php` returning`
   array( 'lang' => array( 'key' => 'text' ) )`).

## 屏幕截图

[⌊Languages settings — add unlimited languages, pick the default, and turn on automatic
browser-language redirection for first-time visitors.⌉⌊Languages settings — add 
unlimited languages, pick the default, and turn on automatic browser-language redirection
for first-time visitors.⌉[

Languages settings — add unlimited languages, pick the default, and turn on automatic
browser-language redirection for first-time visitors.

[⌊Translations editor — every string discovered on the front end lands here automatically;
edit and save per language.⌉⌊Translations editor — every string discovered on the
front end lands here automatically; edit and save per language.⌉[

Translations editor — every string discovered on the front end lands here automatically;
edit and save per language.

[⌊Front end — a language-prefixed URL (/de/) with the [mtml_switcher] shortcode 
in the header.⌉⌊Front end — a language-prefixed URL (/de/) with the [mtml_switcher]
shortcode in the header.⌉[

Front end — a language-prefixed URL (`/de/`) with the `[mtml_switcher]` shortcode
in the header.

## 安装

 1. Copy the `mtcodes-translator` folder into `wp-content/plugins/`.
 2. Activate the plugin.
 3. Configure languages under Settings  MTCodes Translator  Languages.
 4. Visit any page under a language prefix, then translate the discovered strings under
    Settings  MTCodes Translator  Translations.

## 常见问题

### Do I need to duplicate my pages per language?

No. One page serves all languages; the plugin translates the rendered output per
URL.

### What happens to untranslated strings?

They are shown in the default language and collected in the admin editor, sorted
newest first.

## 评价

此插件暂无评价。

## 贡献者及开发者

「MTCodes Translator & Language Switcher」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Milkan Trninic ](https://profiles.wordpress.org/milkan2002/)

[帮助将「MTCodes Translator & Language Switcher」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/mtcodes-translator)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release: language URL routing, rendered-page translation, string discovery,
   hreflang/canonical/sitemap SEO, admin editor, theme dictionary importer, switcher
   shortcode.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.9 或更高版本 **
 *  已测试的最高版本为 **7.1**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/mtcodes-translator/)
 * 标签
 * [hreflang](https://cn.wordpress.org/plugins/tags/hreflang/)[language switcher](https://cn.wordpress.org/plugins/tags/language-switcher/)
   [multilingual](https://cn.wordpress.org/plugins/tags/multilingual/)[translate](https://cn.wordpress.org/plugins/tags/translate/)
   [translation](https://cn.wordpress.org/plugins/tags/translation/)
 *  [高级视图](https://cn.wordpress.org/plugins/mtcodes-translator/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/mtcodes-translator/reviews/#new-post)

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

## 贡献者

 *   [ Milkan Trninic ](https://profiles.wordpress.org/milkan2002/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/mtcodes-translator/)