{"id":33558,"date":"2014-12-24T13:57:54","date_gmt":"2014-12-24T13:57:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/language-code-selector-mqtranslate\/"},"modified":"2015-04-30T08:09:01","modified_gmt":"2015-04-30T08:09:01","slug":"language-code-selector-mqtranslate","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/language-code-selector-mqtranslate\/","author":13799791,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.1.42","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"mqtranslate langcode widget selector","header_author":"Koldo Gonzalez","header_description":"","assets_banners_color":"","last_updated":"2015-04-30 08:09:01","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/funkydrop.net\/","header_plugin_uri":"http:\/\/funkydrop.net\/","header_author_uri":"http:\/\/funkydrop.net\/","rating":4,"author_block_rating":0,"active_installs":30,"downloads":4785,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1385,39602,2279,2220,162],"plugin_category":[43,48],"plugin_contributors":[87868],"plugin_business_model":[],"class_list":["post-33558","plugin","type-plugin","status-publish","hentry","plugin_tags-language","plugin_tags-mqtranslate","plugin_tags-qtranslate","plugin_tags-selector","plugin_tags-widget","plugin_category-customization","plugin_category-language-tools","plugin_contributors-rufein","plugin_committers-rufein"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/language-code-selector-mqtranslate.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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\nlanguages (Deutsch, english, spanish), the widget will display: de | en | es<\/p>\n\n<p>The plugin is compatible with Qtrasnlate Slug {qts}.<\/p>\n\n<p>It also has got the following filters:<\/p>\n\n<ul>\n<li>'lang-code-selector-content' =&gt; This filter allows alter the content of each idiom.<\/li>\n<\/ul>\n\n<h3>Arbitrary section<\/h3>\n\n<!--section=installation-->\n<ul>\n<li>Install plugin either via the WordPress.org plugin directory, or by uploading the files to your server.<\/li>\n<li>Activate the module.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>How can i change the content of the switcher?<\/dt>\n<dd><p>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.<\/p>\n\n<p>For example:<\/p>\n\n<p>add_filter( 'lang-code-selector-content', 'test_lang_code_selector_content' );<\/p>\n\n<p>function test_lang_code_selector_content( $lang_code ){ \n    global $q_config;\n    $link_flag_url =  dirname(plugins_url()) . '\/' . $q_config['flag_location'] . $q_config['flag'][$lang_code];\n    $link_flag = \"\";\n    return $lang_code . $link_flag ;\n}<\/p><\/dd>\n<dt>How do i contribute to this plugin?<\/dt>\n<dd><p>I've open a project in my github profile. Feel free to fork and change the code.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Compatibylity with qransalte slug<\/li>\n<li>Added filter: 'lang-code-selector-content'<\/li>\n<li>Realeased plugin.<\/li>\n<\/ul>","raw_excerpt":"Plugin that creates a widget with a language switcher with language codes. It&#039;s compatible with qtranslate and mqtranslate plugin.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33558"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rufein"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33558"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33558"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33558"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33558"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33558"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}