[WordPress] 外掛分享: WPML Shortcodes

WordPress 外掛 WPML Shortcodes 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WPML Shortcodes」是 2014-08-11 上架。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2016-03-05,距離現在已有 3347 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.8 以上版本才可以安裝。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mirkolofio | sed-web-enhancement |

外掛標籤

wpml | language | translate | translator | translation |

內容簡介

新增 wpml__ 和 wpml_e 函式到您的主題,以及 wpml__ 短碼到您的 WordPress 網站。使您的 WordPress 完全支援 WPML 翻譯外掛。


類似 __、_e 函式的行為,您必須提供一個要翻譯的字串和上下文。
這樣就可以了,只需要在 WPML > 串連翻譯 管理面板提供翻譯即可。

請參閱下面的短碼用法。

用法(透過代碼)



用法(透過短碼)

[wpml__ context=wpmlshortcodes]標題[/wpml__]


[wpml__ context=wpmlshortcodes]副標題[/wpml__]

最新消息!WPML Translate (+ 短碼)
將 wpml_if (舊名 wpml_translate) 短碼新增到 WPML 套件中。您還可以在您的 PHP 代碼中使用 wpml_e__if_language( $content, $lang ) 函式。

用法(透過代碼)

wpml_e__if_language( '文字', 'en' );
wpml_e__if_language( '測試', 'it' );
?>


用法(透過短碼)
[wpml_if lang='en']文字[/wpml_if][wpml_if lang='it']測試[/wpml_if]

它還支援 WPML Translate Shortcode(已棄用的外掛)的 wpml_translate 和 wpml_language 往後兼容性。

WPML Translate Shortcode > WPML Shortcodes

歡迎來到新的 WPML Shortcodes。這個外掛是新的 WPML Translate Shortcode,成為完整的翻譯套件。

當然,我們仍然支援 WPML Translate Shortcode,透過新的短碼(1.2.4+):wpml_if(請參閱上面的用法)。
此外,我們在 1.2.6+ 版本提供完整的往後相容性(是的,您仍然可以使用 wpml_translate 或 wpml_language 短碼)。

貢獻

GitHub 上的拉取請求:github.com。

作者:Mirco Babini,網站開發人員和行動應用程式開發者;WordPress 顧問。

原文外掛簡介

Adds the wpml__ and wpml_e functions to your theme and the wpml__ shortcode to your WordPress website. Make your WordPress full WPML ready


Similarly to the behaviour of the __, _e functions, you must provide a string to make translateable and a context.
That’s it; just provide translations from the WPML > String Translations admin panel.
Check how to use the shortcode below.
Usage (via code)

Usage (via shortcode)

[wpml__ context=wpmlshortcodes]Title[/wpml__]

[wpml__ context=wpmlshortcodes]Subtitle[/wpml__]

NEWS! WPML Translate (+ shortcode)
Adds the wpml_if (ex wpml_translate) shortcode to your WPML suite. You can also use the wpml_e__if_language( $content, $lang ) in your php code.

Usage (via code)

Usage (via shortcode)
[wpml_if lang='en']Text[/wpml_if][wpml_if lang='it']Testo[/wpml_if]
It also supports backward compatibility for wpml_translate and wpml_language from WPML Translate Shortcode (deprecated plugin);
WPML Translate Shortcode > WPML Shortcodes
Welcome to the new WPML Shortcodes. This plugin is the new WPML Translate Shortcode, became a full-translation suite.
Of course we still support WPML Translate Shortcode, with a new shortcode (1.2.4+): wpml_if (see usage above).
Also, we provide full backward compatibility (yes, you can still use wpml_translate or wpml_language shortcodes) on 1.2.6+.
Contribute
Pull requests on github.com.
Author: Mirco Babini, Web Developer and Mobile App Developer; WordPress Consultant.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WPML Shortcodes」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.2.0 | 1.2.1 | 1.2.4 | 1.2.5 | 1.2.6 | trunk |

延伸相關外掛(你可能也想知道)

  • Loco Translate 》Loco Translate 提供在瀏覽器中編輯 WordPress 翻譯文件和與自動翻譯服務集成的功能。, 它還為開發人員提供 Gettext/本地化工具,例如提取字符串和生成模板。...。
  • Polylang 》ts, Polylang is developed by the Polylang team with the help of numerous contributors., If you want to contribute or report an issue, please visit ...。
  • Translate WordPress with GTranslate 》Translate WordPress with GTranslate外掛使用 Google Translate 自動翻譯服務,讓您的 WordPress 網站多語言化,並發揮 Google 的力量。有103種語言可供選擇...。
  • Translate WordPress – Google Language Translator 》Google Language Translator 外掛現已經成為 GTranslate 家族的一員!, GTranslate 自 2008 年以來一直是一家領先的網站翻譯服務提供商,為全球超過 500,000 ...。
  • Translate WordPress and go Multilingual – Weglot 》Weglot Translate是領先的WordPress翻譯外掛,全球有超過60,000個使用者信任。您可以在幾分鐘內將WordPress網站翻譯成110多種語言,無需編碼即可實現多語言。...。
  • Ray Enterprise Translation 》Ray Enterprise Translation 提供方便的基於雲端的本地化和WordPress翻譯,通過簡化創建和維護多語言網站的過程。其功能包括機器翻譯、專業翻譯和社區翻譯解...。
  • WPBakery Visual Composer & qTranslate-X 》這個外掛可以讓 qTranslate-X 多語言工具運作於 WPBakery Visual Composer 外掛程式中。, 需要 qTranslate-X 版本 3.3 或者 alpha 預發行版 以上版本。, 這個...。
  • Translate WordPress with ConveyThis 》ConveyThis Translate 是最精確、最快速、最容易使用的語言外掛,可將您的 WordPress 網站翻譯成超過 120 種語言!安裝 ConveyThis Translate 只需幾個簡單的...。
  • Bogo 》https://ideasilo.wordpress.com/bogo/, Bogo 是一個簡單易用的 WordPress 多語言插件。, WordPress 自身就具備本地化功能,可以讓您在除英語外的另一種語言...。
  • Multilingual Contact Form 7 with Polylang 》這個外掛可以通過使用 Polylang 和其字串翻譯功能,在多語言頁面上使用 Contact Form 7 表單。, 與其他解決方案不同,您不需要為每種語言創建一個表單,而是...。
  • Admin Locale 》這個外掛提供了在網站上以某種語言運行(例如阿拉伯語),並在管理面板中使用另一種語言(例如英語)的能力。, 只需前往「設定」»「一般」,然後選擇您...。
  • Language Fallback 》從WordPress 4.3開始,您可以在您的WordPress安裝中使用像“Deutsch (Sie)”(正式德語)這樣的語言。但是,如果您使用的主題或外掛沒有這種語言的...。
  • Multisite Language Switcher 》這是一個簡單、強大且易於使用的 WordPress 多語言外掛程式,可以為 WordPress 多網站 安裝增加多語言支援,例如多個子網域或資料夾(如果您需要跨多個網域建...。
  • Hreflang Manager – Hreflang Implementation for International SEO 》Hreflang Manager 外掛提供了一個簡單且可靠的方法,在 WordPress 中實現 hreflang 功能。, 要了解 hreflang 的技術用法,請參閱 Google 提供的官方文件。, P...。
  • Flag Icons 》此外掛可讓您在網站上加入國旗圖示以及可指定的鏈結,可藉由選擇所需的位置或使用簡碼實現。, 第二版支援 Google 翻譯圖示!, 您只需選擇位置、旗幟以及新增...。

文章
Filter
Mastodon