<?php
/*
 * This shortcode require WPML plugin
 */
function theme_wpml($atts, $content = null ) {
	extract(shortcode_atts(array(
		'code' => '',
	), $atts));

	if(ICL_LANGUAGE_CODE == $code){
		$result = do_shortcode($content);
	} else {
		$result = "";
	}
	
	return $result;
}
add_shortcode('lang', 'theme_wpml');


				
				
			