Skip Navigation

[Resolved] Custom search problem with checkbox label translation

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 11 months, 1 week ago.

Assisted by: Minesh.

Author
Posts
#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:
hidden link
German Version:
hidden link

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:
hidden link
German Version:
hidden link

#2678564

Minesh
Supporter

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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:
hidden link
German Version:
hidden link

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

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

cheers

#2678606

Minesh
Supporter

Languages: English (English )

Timezone: 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".