WPML
สถานะ
แก้ไขแล้ว
รายงานสำหรับ
WPML Media Translation 2.5.6
แก้ไขใน
2.6.0

ภาพรวมของปัญหา

หากคุณส่งหน้าที่มีรูปภาพหลายรูปไปแปล แล้วลบรูปภาพบางส่วนออกจากคลังสื่อ คุณอาจพบปัญหาในการแปลเป็นภาษาอื่นๆ

อีกกรณีหนึ่งที่อาจทำให้เกิดผลลัพธ์แบบเดียวกันคือ หากคุณมี ID ว่างใน shortcode สำหรับคำบรรยายภาพ – เช่น

วิธีแก้ปัญหาชั่วคราว

wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php
เปลี่ยน:

			$new_caption_shortcode = $this->replace_caption_id_with_translated_id(
				$new_caption_shortcode,
				$attachment_id,
				$language
			);

เป็น

if ($attachment_id !== NULL) {
	$new_caption_shortcode = $this->replace_caption_id_with_translated_id(
		$new_caption_shortcode,
		$attachment_id,
		$language
	);
}

ปัญหาที่ทราบแล้วทั้งหมด →