ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
Bug bei der Menü Übersetzung mit uncode Page Builder
เริ่มโดย: hendrikJ-8 ใน: Unterstützung in Deutsch |
|
0 | 5 | 1 month มาแล้ว | |
|
Glossar und Fehler bei automatischer Übersetzung
เริ่มโดย: hendrikJ-8
ใน: Unterstützung in Deutsch
Problem: add_filter( 'wpml_pb_shortcode_encode', 'wpml_pb_shortcode_encode_urlencoded_json', 10, 3 );<br />function wpml_pb_shortcode_encode_urlencoded_json( $string, $encoding, $original_string ) {<br /> if ( 'urlencoded_json' === $encoding ) {<br /> $output = array();<br /> foreach ( $original_string as $combined_key => $value ) {<br /> $parts = explode( '_', $combined_key );<br /> $i = array_pop( $parts );<br /> $key = implode( '_', $parts );<br /> $output[ $i ][ $key ] = $value;<br /> }<br /> $string = urlencode( json_encode( $output ) );<br /> }<br /> return $string;<br />}<br /><br />add_filter( 'wpml_pb_shortcode_decode', 'wpml_pb_shortcode_decode_urlencoded_json', 10, 3 );<br />function wpml_pb_shortcode_decode_urlencoded_json( $string, $encoding, $original_string ) {<br /> if ( 'urlencoded_json' === $encoding ) {<br /> $rows = json_decode( urldecode( $original_string ), true );<br /> $string = array();<br /> foreach ( $rows as $i => $row ) {<br /> foreach ( $row as $key => $value ) {<br /> if ( in_array( $key, array( 'entry', 'value' ) ) ) {<br /> $string[ $key . '_' . $i ] = array( 'value' => $value, 'translate' => true );<br /> } else {<br /> $string[ $key . '_' . $i ] = array( 'value' => $value, 'translate' => false );<br /> }<br /> }<br /> }<br /> }<br /> return $string;<br />}Um sicherzustellen, dass dieser Code auch nach Theme-Updates erhalten bleibt, empfehlen wir die Verwendung eines Child Themes. Nach der Code-Implementierung und einer kleinen Änderung an der Seite sollten die Übersetzungen automatisch aktualisiert und zur Überprüfung bereitgestellt werden. Falls diese Lösung veraltet ist oder nicht auf Ihr Problem zutrifft, empfehlen wir, einen neuen Support-Ticket zu öffnen und die bekannten Probleme zu überprüfen. Stellen Sie außerdem sicher, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. |
|
0 | 6 | 1 month มาแล้ว |