Passer la navigation

[Résolu] Custom search problem with checkbox label translation

This support ticket is created Il y a 1 years, 7 months. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 1 years, 7 months.

Assisté par: Minesh.

Auteur
Publications
#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:
lien caché
German Version:
lien caché

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:
lien caché
German Version:
lien caché

#2678564

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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:
lien caché
German Version:
lien caché

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

[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 lien caché (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 lien caché 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 lien caché, 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 (lien caché) where I removed the wpml-string shortcode because it seems that it doesn't work with white spaces in the label.

cheers

Les nouveaux fils créés par Minesh et associés à celui-ci sont repris ci-dessous :

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

#2678606

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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".