這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

mqtranslate langcode widget selector

外掛說明

Extension of the mqtranslate plugin that creates a widget that displays a language selector with language codes. For example, if you have got a site in 3 different
languages (Deutsch, english, spanish), the widget will display: de | en | es

The plugin is compatible with Qtrasnlate Slug {qts}.

It also has got the following filters:

  • ‘lang-code-selector-content’ => This filter allows alter the content of each idiom.

Arbitrary section

安裝方式

  • Install plugin either via the WordPress.org plugin directory, or by uploading the files to your server.
  • Activate the module.

常見問題集

How can i change the content of the switcher?

Yes. It’s posible change the content of the selector. You only have to add a filter in the functions.php in your theme or add the code in yoyr custom plugin.

For example:

add_filter( ‘lang-code-selector-content’, ‘test_lang_code_selector_content’ );

function test_lang_code_selector_content( $lang_code ){
global $q_config;
$link_flag_url = dirname(plugins_url()) . ‘/’ . $q_config[‘flag_location’] . $q_config[‘flag’][$lang_code];
$link_flag = “”;
return $lang_code . $link_flag ;
}

How do i contribute to this plugin?

I’ve open a project in my github profile. Feel free to fork and change the code.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈mqtranslate langcode widget selector〉的開發相關工作。

參與者

變更記錄

1.0

  • Compatibylity with qransalte slug
  • Added filter: ‘lang-code-selector-content’
  • Realeased plugin.