Saltar navegación

[Resuelto] Custom search problem with checkbox label translation

This support ticket is created hace 1 año, 5 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 5 respuestas, tiene 2 mensajes.

Última actualización por Minesh hace 1 año, 5 meses.

Asistido por: Minesh.

Autor
Mensajes
#2678520
EN.png
DE.png

Hi, I've an issue with the checkbox label translation in the custom search.

You can see the problem on this page, it is a taxonomy archive:
English version:
enlace oculto
German Version:
enlace oculto

The checkbox label "Official Discovery Points" is not correctly translated.

You can see it works fine on this page, in this case it is a View:
English version:
enlace oculto
German Version:
enlace oculto

#2678564

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

First of all, based on the debug information you shared I find that you are using the outdated WPML plugins. We always recommend running your site with the latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***

Could you please update ALL WPML plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://wpml.org/account/downloads/
OR
You can install/update WPML plugins using the installer plugin:
- https://wpml.org/faq/updating-wpml-manually/#how-do-i-upload-and-activate-the-otgs-installer-plugin

Once you update ALL WPML plugins to latest official released version - do you see the issue? if yes:

I will require admin access details in order to check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2678583

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please check now:
You can see the problem on this page, it is a taxonomy archive:
English version:
enlace oculto
German Version:
enlace oculto

I've adjusted the label with [wpml-string] shortcode within your archive as given under:
- enlace oculto

[wpv-control-postmeta field="wpcf-official-discovery-point" title="[wpml-string context='wpv-views']Official Discovery Points[/wpml-string]" url_param="wpv-wpcf-official-discovery-point"]

Can you please confirm it works as expected.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpml-string

#2678587

Thank you! It works fine.

I removed the wpml-string shortcode because it didn't work fine on enlace oculto (I read it is not possible to use white spaces in labels).

cheers

#2678590
search3.jpg
search2.jpg
search1.jpg

Hey! I've just found another problem.

If I use your wpml-string shortcode solution, the search filter doens't work properly.

On enlace oculto you can see the pager displays 11 pages (image search1.png).

If you click on Official Discovery Points checkbox, the result pager displays 14 pages and there isn't any paramenter in the URL (image search2.png).

Instead, if you test the search on this page enlace oculto, you will see it works fine and the URL displays the wpv-wpcf-official-discovery-point=1 parameter (image search3.png).

This page uses a view (enlace oculto) where I removed the wpml-string shortcode because it seems that it doesn't work with white spaces in the label.

cheers

Los hilos nuevos creados por Minesh y vinculados a este se encuentran a continuación:

https://toolset.com/es/forums/topic/split-custom-search-problem-with-checkbox-label-translation-filter-not-working-for-taxonomy/

#2678606

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I've split the ticket and I will take care of the new issue with the following split ticket:
- https://toolset.com/forums/topic/split-custom-search-problem-with-checkbox-label-translation-filter-not-working-for-taxonomy/

You are welcome to mark resolve this ticket with different text like "translation issue is fixed".