/** * Sets up the XLIFF class handling the frontend xliff related hooks * and rendering */ public function load_xliff_frontend() { setup_xliff_frontend(); }
_e('XLIFF version', 'wpml-translation-management'); ?> </h4> <p> <?php _e('Choose default format for XLIFF file:', 'wpml-translation-management'); ?> <select name="icl_xliff_version"> <option value="false"><?php echo __("Please choose", "wpml-xliff"); ?> </option> <?php $xliff_instance = setup_xliff_frontend(); $available_xliff_versions = $xliff_instance->get_available_xliff_versions(); foreach ($available_xliff_versions as $value => $version) { $selected = ""; if ($sitepress->get_setting("tm_xliff_version") == $value) { $selected = "selected"; } printf("<option value='" . $value . "' " . $selected . ">" . __('XLIFF %s', 'wpml-translation-management') . "</option>", $version); } ?> </select> </p> </div> <div class="wpml-section-content-inner">