Este usuário não tem tópicos favoritos.
Tópicos favoritos do fórum
Tópicos do fórum criados
| Status |
Tópico
|
Suporte | Vozes | Posts | Atualidade |
|---|---|---|---|---|---|
|
Split: jobs won't load
1
2
Iniciado por: amandaR-4 em: English Support |
|
0 | 19 | 2 dias atrás | |
|
Salesforce Integration – Translated Gravity Forms Sending Incorrect Field Values
Iniciado por: amandaR-4 em: English Support |
|
0 | 14 | 1 semana, 6 dias atrás | |
|
Translations not showing
Iniciado por: amandaR-4
em: 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 ano, 1 mês atrás | |
|
Table translations
Iniciado por: amandaR-4
em: 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 ano, 1 mês atrás | |
|
Gravity Forms Translation
Iniciado por: amandaR-4
em: English Support
Problem: |
|
2 | 3 | 1 ano, 1 mês atrás | |
|
XLIFF Export
Iniciado por: amandaR-4 em: Chat Support |
|
1 | 2 |
1 ano, 1 mês atrás
|