ليس لدى هذا المستخدم أي مواضيع مفضلة.
مواضيع المنتدى المفضلة
مواضيع المنتدى التي تم إنشاؤها
| الحالة |
الموضوع
|
داعم | الأصوات | المشاركات | الحداثة |
|---|---|---|---|---|---|
|
Split: jobs won't load
1
2
3
بدأه: amandaR-4 في: English Support |
|
0 | 35 | قبل 6 أيام، 19 ساعة | |
|
Salesforce Integration – Translated Gravity Forms Sending Incorrect Field Values
بدأه: amandaR-4 في: English Support |
|
0 | 14 | قبل 1 شهر، 3 أسابيع | |
|
Translations not showing
بدأه: amandaR-4
في: English Support
Problem: Solution: /* That's all, stop editing! Happy publishing. */ in the wp-config.php file. After making this adjustment, the translations started showing correctly. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum. |
|
2 | 9 | قبل 1 سنة، شهرين | |
|
Table translations
بدأه: amandaR-4
في: English Support
Problem: Solution:
<shortcode>
<tag>tek_pricing</tag>
<attributes>
<attribute label="Pricing title">pricing_title</attribute>
<attribute label="Pricing time">pricing_time</attribute>
<attribute label="Pricing button text">pricing_button_text</attribute>
<attribute type="area" encoding="urlencoded_json">pricing_option</attribute>
</attributes>
</shortcode>
2. Add the following code to the file functions.php in the child theme folder to handle the encoding and decoding of the URL-encoded JSON:
add_filter( 'wpml_pb_shortcode_encode', 'wpml_pb_shortcode_encode_urlencoded_json', 10, 3 );
function wpml_pb_shortcode_encode_urlencoded_json( $string, $encoding, $original_string ) {
if ( 'urlencoded_json' === $encoding ) {
$output = array();
foreach ( $original_string as $combined_key => $value ) {
$parts = explode( '_', $combined_key );
$i = array_pop( $parts );
$key = implode( '_', $parts );
$output[ $i ][ $key ] = $value;
}
$string = urlencode( json_encode( $output ) );
}
return $string;
}
add_filter( 'wpml_pb_shortcode_decode', 'wpml_pb_shortcode_decode_urlencoded_json', 10, 3 );
function wpml_pb_shortcode_decode_urlencoded_json( $string, $encoding, $original_string ) {
if ( 'urlencoded_json' === $encoding ) {
$rows = json_decode( urldecode( $original_string ), true );
$string = array();
foreach ( $rows as $i => $row ) {
foreach ( $row as $key => $value ) {
if ( in_array( $key, array( 'text', 'title', 'features', 'substring', 'btn_text', 'label', 'value', 'y_values', 'pricing_row_tooltip', 'pricing_row' ) ) ) {
$string[ $key . '_' . $i ] = array( 'value' => $value, 'translate' => true );
} else {
$string[ $key . '_' . $i ] = array( 'value' => $value, 'translate' => false );
}
}
}
}
return $string;
}
3. Edit the page in the English language, click on Update, and then update the translation page. The pricing option content should now be available in the translation editor. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket. |
|
2 | 5 | قبل 1 سنة، 3 أشهر | |
|
Gravity Forms Translation
بدأه: amandaR-4
في: English Support
Problem: |
|
2 | 3 | قبل 1 سنة، 3 أشهر | |
|
XLIFF Export
بدأه: amandaR-4 في: Chat Support |
|
1 | 2 |
قبل 1 سنة، 3 أشهر
|