WPML
Stato
Risolto
Risolto in
JetSmartFilters 3.2
Plugin/tema correlato
JetSmartFilters
Tag dell’argomento
Compatibility

Panoramica del problema

Quando usi il plugin JetSmartFilters per generare i filtri per i campi personalizzati di JetEngine, le etichette dei filtri non vengono tradotte nelle lingue secondarie.

Soluzione alternativa

Effettua un backup completo del tuo sito prima di procedere.


  1. Traduci le etichette usando WPMLTraduzione stringhe.

  2. Apri il file /wp-content/plugins/jet-smart-filters/templates/filters/checkboxes-item.php.

  3. Sostituisci il seguente frammento di codice:
    $checked_icon = apply_filters( 'jet-smart-filters/templates/checkboxes-item/checked-icon', 'fa fa-check' );

    Con:

    $checked_icon = apply_filters( 'jet-smart-filters/templates/checkboxes-item/checked-icon', 'fa fa-check' );
    $label = apply_filters('wpml_translate_single_string', $label, 'Jet Engine Admin Labels', 'Admin Label - '.$label );


  4. Quindi, apri il file /wp-content/plugins/jet-smart-filters/templates/filters/check-range.php.

  5. Sostituisci il seguente frammento di codice:
    	foreach ( $options as $value => $label ) {

    Con:

    foreach ( $options as $value => $label ) {
    		$label = apply_filters('wpml_translate_single_string', $label, 'Jet Engine Admin Labels', 'Admin Label - '.$label );


  6. Controlla le etichette sul front-end. Ora dovrebbero essere tradotte nelle lingue secondarie.

Tutti i problemi noti →