get_setting( $lp_setting_index, array() ); if ( ! isset( $language_pairs[ $source_language ][ $target_language ] ) || $language_pairs[ $source_language ][ $target_language ] == 0 ) { $language_pairs[ $source_language ][ $target_language ] = 1; TranslationProxy_Translator::update_language_pairs( $project, $language_pairs ); $sitepress->set_setting( $lp_setting_index, $language_pairs, true ); } $target = $project->select_translator_iframe_url( $source_language, $target_language ); } catch ( Exception $e ) { if ( $e->getCode() == ICL_LANGUAGE_NOT_SUPPORTED ) { printf( __( '

Requested languages are not supported by the translation service (%s). Please contact us for support.

', 'wpml-translation-management' ), $e->getMessage(), ' target="_blank" href="http://wpml.org/?page_id=5255"' ); } else { printf( __( '

Could not add the requested languages. Please contact us for support.

Show debug information.

', 'wpml-translation-management' ), ' target="_blank" href="http://wpml.org/?page_id=5255"', ' a href="admin.php?page=' . ICL_PLUGIN_FOLDER . '/menu/troubleshooting.php&icl_action=icl-connection-test' . '#icl-connection-test"' ); } exit; } } $target .= ( strpos( $target, '?' ) === false ) ? '?' : '&'; $target .= "lc=" . $sitepress->get_admin_language(); ?>