/** * Adds a multi language metabox * * @since 1.3 */ public function add_multilanguage_metabox( $fields ) { $languages = WPRSS_FTP_Utils::get_wpml_languages(); $fields['multi-language'] = array( 'post_language' => array( 'label' => __( 'Post Language', WPRSS_TEXT_DOMAIN ), 'desc' => __( 'Choose the language to assign to posts imported from this source', WPRSS_TEXT_DOMAIN ), 'type' => 'dropdown', 'options' => $languages ) ); return $fields; }