內容簡介
MTCodes Translator & Language Switcher 是一款輕量級的多語言外掛,無需依賴其他外掛或佈景主題,能夠為網站提供無限語言支持,並優化SEO設置,提升網站的可見性。
【主要功能】
• 支援無限語言,透過URL前綴管理
• 與任何建構器相容,自動解析HTML
• SEO友好,提供hreflang和自我引用canonical
• 語言切換器,方便用戶切換語言
• 可選擇導入主題字典文件
外掛標籤
開發者團隊
② 後台搜尋「MTCodes Translator & Language Switcher」→ 直接安裝(推薦)
原文外掛簡介
MTCodes Translator is a lightweight multilingual plugin with no dependencies and no theme coupling, built by MTCodes.
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 and og:locale, translated
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' ) )).
