Cet utilisateur n'a aucun sujet favori.
Sujets de forum favoris
Sujets de forum créés
| Statut |
Sujet
|
Support | Voix | Messages | Fraîcheur |
|---|---|---|---|---|---|
|
Split: jobs won't load
1
2
3
Commencé par : amandaR-4 dans : English Support |
|
0 | 35 | Il y a 6 jours et 2 heures | |
|
Salesforce Integration – Translated Gravity Forms Sending Incorrect Field Values
Commencé par : amandaR-4 dans : English Support |
|
0 | 14 | Il y a 1 mois et 2 semaines | |
|
Translations not showing
Commencé par : amandaR-4
dans : 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 | Il y a 1 année et 2 mois | |
|
Table translations
Commencé par : amandaR-4
dans : 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 | Il y a 1 année et 2 mois | |
|
Gravity Forms Translation
Commencé par : amandaR-4
dans : English Support
Problem: |
|
2 | 3 | Il y a 1 année et 3 mois | |
|
XLIFF Export
Commencé par : amandaR-4 dans : Chat Support |
|
1 | 2 |
Il y a 1 année et 3 mois
|