
內容簡介
這個外掛將 wpml_translate 短代碼加入你的短代碼套件中。你也可以在你的 php code 中使用 wpml_text_if_language( $lang, $content )。
使用方法 (透過程式碼)
echo wpml_text_if_language( 'en', 'Text' ); echo wpml_text_if_language( 'it', 'Testo' );
使用方法 (透過短碼)
[wpml_translate lang='en']Text[/wpml_translate][wpml_translate lang='it']Testo[/wpml_translate]
別名
wpml_language 是 wpml_translate 短碼的別名
code 和 language 是 lang 屬性的別名
貢獻
如果您想要貢獻,請提交拉取請求到 github.com。
由 WordPress 顧問、網站開發人員和數據愛好者 Mirco Babini 開發。
外掛標籤
開發者團隊
原文外掛簡介
Adds the wpml_translate shortcode to your shortcode suite. You can also use the wpml_text_if_language( $lang, $content ) in your php code.
Usage (via code)
echo wpml_text_if_language( ‘en’, ‘Text’ ); echo wpml_text_if_language( ‘it’, ‘Testo’ );
Usage (via shortcode)
[wpml_translate lang=’en’]Text[/wpml_translate][wpml_translate lang=’it’]Testo[/wpml_translate]
Alias
wpml_language is an alias for wpml_translate shortcode
code and language are alias for lang attribute
Contribute
If you wanna contribute, pull requests on github.com.
Developed by Mirco Babini, WordPress Consultant, Web Developer and Data Lover.
