- สถานะ
- รอผู้พัฒนา
- ปลั๊กอิน/ธีมที่เกี่ยวข้อง
- NextGen Gallery
- แท็กหัวข้อ
- Compatibility
ภาพรวมของปัญหา
หากคุณใช้งานอัลบั้ม NextGen Gallery Pro คุณจะพบว่าชื่อแกลเลอรีไม่ได้รับการแปลอย่างถูกต้องในภาษารอง
วิธีแก้ปัญหาชั่วคราว
โปรดตรวจสอบให้แน่ใจว่าได้ทำการสำรองข้อมูลไซต์ทั้งหมดของคุณก่อนดำเนินการต่อ
- เปิดไฟล์ …/wp-content/plugins/nextgen-gallery-pro/templates/DisplayTypes/Albums/default.php
- ค้นหาบรรทัดที่ 51
- แทนที่:
<?php print wp_kses( $entity->title, ImagelyNGGDisplayI18N::get_kses_allowed_html() ); ?>
- ด้วย:
<?php // WPML Workaround for compsupp-7540 if (class_exists('Sitepress')) { $string = $entity->title; $textdomain = 'WordPress'; $string_name = 'WPML Workaround: '.substr($string, 0, 20); $wpml_default_lang = apply_filters('wpml_default_language', NULL ); $wpml_current_lang = apply_filters( 'wpml_current_language', NULL ); if ($wpml_default_lang == $wpml_current_lang ) { do_action( 'wpml_register_single_string', $textdomain, $string_name, $string ); } // Apply the translation to the string $entity->title = apply_filters('wpml_translate_single_string', $string , $textdomain, $string_name); } ?> <?php print wp_kses( $entity->title, ImagelyNGGDisplayI18N::get_kses_allowed_html() ); ?> - ไปที่หน้าส่วนหน้าเว็บไซต์ที่คุณได้เพิ่มอัลบั้มไว้
- ไปที่ WPML > การแปลสตริง และแปลสตริงข้อความใหม่