private function output_editor_form()
    {
        ?>
		<form id="icl_tm_editor" method="post" action="">
			<input type="hidden" name="job_post_type" value="<?php 
        echo esc_attr($this->job->original_post_type);
        ?>
"/>
			<input type="hidden" name="job_post_id" value="<?php 
        echo esc_attr($this->job->original_doc_id);
        ?>
"/>
			<input type="hidden" name="job_id" value="<?php 
        echo esc_attr($this->job_instance->get_id());
        ?>
"/>

			<div id="wpml-translation-editor-wrapper"></div>
		</form>
	<?php 
    }
    /**
     * @return string[]
     */
    private function get_translation_editor_strings()
    {
        return array('dontShowAgain' => __("Don't show this again.", 'wpml-translation-management'), 'learnMore' => __('<p>The administrator has disabled term translation from the translation editor. </p>
<p>If your access permissions allow you can change this under "Translation Management" - "Multilingual Content Setup" - "Block translating taxonomy terms that already got translated". </p>
<p>Please note that editing terms from the translation editor will affect all posts that have the respective terms associated.</p>', 'wpml-translation-management'), 'warning' => __("Please be advised that editing this term's translation here will change the value of the term in general. The changes made here, will not only affect this post!", 'wpml-translation-management'), 'title' => __("Terms translation is disabled", 'wpml-translation-management'), 'confirm' => __('You have unsaved work. Are you sure you want to close without saving?', 'wpml-translation-management'), 'cancel' => __('Cancel', 'wpml-translation-management'), 'save' => __('Save', 'wpml-translation-management'), 'save_and_close' => __('Save & Close', 'wpml-translation-management'), 'loading_url' => ICL_PLUGIN_URL . '/res/img/ajax-loader.gif', 'saving' => __('Saving...', 'wpml-translation-management'), 'translation_complete' => __('Translation is complete', 'wpml-translation-management'), 'contentNonce' => wp_create_nonce('wpml_save_job_nonce', 'wpml_save_job_nonce'), 'source_lang' => __('Original', 'wpml-translation-management'), 'target_lang' => __('Translation to', 'wpml-translation-management'), 'copy_all' => __('Copy all fields from original', 'wpml-translation-management'), 'resign' => __('Resign', 'wpml-translation-management'), 'resign_translation' => __('Are you sure you want to resign from this job?', 'wpml-translation-management'), 'resign_url' => admin_url('admin.php?page=' . WPML_TM_FOLDER . '/menu/translations-queue.php&icl_tm_action=save_translation&resign=1&job_id=' . $this->job->get_id()), 'confirmNavigate' => __('You have unsaved changes!', 'wpml-translation-management'), 'copy_from_original' => __('Copy from original', 'wpml-translation-management'));
    }
    function render()
    {
        list($this->rtl_original, $this->rtl_translation) = $this->init_rtl_settings();
        require_once ABSPATH . 'wp-admin/includes/image.php';
        require_once ABSPATH . 'wp-admin/includes/file.php';
        require_once ABSPATH . 'wp-admin/includes/media.php';
        ?>
		<div class="wrap icl-translation-editor">
			<div id="icon-wpml" class="icon32"><br/></div>
			<h2><?php 
        echo __('Translation editor', 'wpml-translation-management');
        ?>
</h2>

			<?php 
        do_action('icl_tm_messages');
        $this->init_original_post();
        $this->init_editor_object();
        $this->render_editor_header();
        $this->render_translator_note();
        ?>

			<form id="icl_tm_editor" method="post" action="">
				<input type="hidden" name="icl_tm_action" value="save_translation"/>
				<input type="hidden" name="job_id" value="<?php 
        echo esc_attr($this->job_instance->get_id());
        ?>
"/>
				<?php 
        $this->render_elements_content();
        ?>
				<br clear="all"/>
				<label><input type="checkbox" name="complete" <?php 
        if (!$this->all_translations_finished) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 <?php 
        if ($this->job->translated) {
            ?>
 checked="checked"<?php 
        }
        ?>
 value="1"/>&nbsp;<?php 
        _e('Translation of this document is complete', 'wpml-translation-management');
        ?>
</label>

				<div id="icl_tm_validation_error" class="icl_error_text"><?php 
        _e('Please review the document translation and fill in all the required fields.', 'wpml-translation-management');
        ?>
</div>
				<p class="submit-buttons">
					<input type="submit" class="button-primary" value="<?php 
        _e('Save translation', 'wpml-translation-management');
        ?>
"/>&nbsp;
					<?php 
        if (isset($_POST['complete']) && $_POST['complete']) {
            $cancel_txt = __('Jobs queue', 'wpml-translation-management');
        } else {
            $cancel_txt = __('Cancel', 'wpml-translation-management');
        }
        ?>
					<a class="button-secondary" href="<?php 
        echo admin_url('admin.php?page=' . WPML_TM_FOLDER . '/menu/translations-queue.php');
        ?>
"><?php 
        echo $cancel_txt;
        ?>
</a>
					<input type="submit"
					       id="icl_tm_resign"
					       class="button-secondary"
					       value="<?php 
        _e('Resign', 'wpml-translation-management');
        ?>
"
					       onclick="if(confirm('<?php 
        echo esc_js(__('Are you sure you want to resign from this job?', 'wpml-translation-management'));
        ?>
')) {jQuery(this).next().val(1);}else {return false;}"/><input type="hidden"
					                                                                                                                                                                                                        name="resign"
					                                                                                                                                                                                                        value="0"/>
				</p>
				<?php 
        do_action('edit_form_advanced');
        ?>
				<?php 
        wp_nonce_field('icl_get_job_original_field_content_nonce', 'icl_get_job_original_field_content_nonce');
        ?>
			</form>
		</div>
	<?php 
    }