Skip Navigation

[Resolved] taxonomy not translated with search filter

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 16 replies, has 2 voices.

Last updated by red-river-agency-llcl 1 year, 9 months ago.

Assisted by: Nigel.

Author
Posts
#2640849

I created the website in 3 languages, english spanish and french
Created a taxonomy with the name "services"
On the English page the search works fine but on the Spanish and French pages the translation is not done in the dropdown menu of the filter and nothing appears even if the option "display in the original language if there is no translation is checked".
on the other hand, the translation is done for the title, where I simply use a "toolset single field" that points to the "service" taxonomy.
any help welcome, thank you

#2640935

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

Hi there

I just went through the steps to test this on my own site locally, and it was working okay, so I think you possibly missed a step.

First, are the translation terms translated? (Go to WPML > Taxonomy translation and choose the taxonomy, the ensure the terms are translated.)

Are you using the block editor to create your View? If that's the case then you should simply need to send the page containing the View to translation, and complete the translation.

Please confirm the above.

#2641099
error transaltion.png

Hello,
Yes, I can confirm that everything seems to be in order.
I think the problem is even bigger and that it's probably due to WPML because I'm having other translation problems, in addition to this filter problem everything seems to get mixed up in the languages, as you can see on this image of the homepage in Spanish even though everything is translated in the strings translation.

#2641285

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

The screenshot you shared, that's not output by the View, or is it?

What generates that part of the page? Depending on how the page is made, you may need to use String Translation to translate some parts, but it may also be the case that you should not, even if you can find what appear to be the correct strings in String Translation and translate them.

Perhaps I could take a look at how the page is made and double-check your settings, etc.

Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#2642079

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

Sorry, I tried to log in to your site, but it says there is no user with that username registered on the site.

Could you please double-check. You can edit your previous private reply to update the details if needs be.

Thanks

#2642169

Sorry, I forgot to activate the user, it's in order now, thanks.

#2642219

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

That's frustrating.

I've confirmed that the texts appear to have been translated correctly, and those translations should be appearing on the front end.

I have tested something similar on my own local site, including adding multiple Views to the same page, using columns for the output, but it works correctly each time, and I can't reproduce the problem.

As your site is in maintenance mode I quickly tested whether disabling non-essential plugins and switching theme made any difference, but it did not.

To debug this more deeply I would need to take a copy of your site to work on it locally.

Do I have your permission?

#2642221

Yes, it's very frustrating, I'm not a beginner, but I don't know enough about Toolset and I haven't had any problems on other sites with wpml
Yes, you have my permission šŸ˜‰

#2642821

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

I've done that, thanks. I spent a lot of this morning stepping through the code execution to try and isolate where it goes differently than on my own test site where similar translated texts are correctly shown.

I didn't get to the bottom of it, I'll resume testing tomorrow and update you then.

#2643647

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

OK, I had to dig pretty deep to discover something fairly simple.

Buried in the settings as they are stored in the database it transpires that the page that the View in question was initially created on has been removed. I see you have been adapting the Dog Walkers reference site, and I don't know if it is the changes you have subsequently made or whether it happened during the creation of the reference site, but in any case it explains why under the hood the translated texts don't appear as intended.

There isn't a workaround, I'm afraid, you will need to discard this View and attempt to recreate it, starting by inserting a new View block.

Sorry that I don't have a simpler solution.

#2645005

Hello,
Unfortunately the problem persists, I've created a new page with a new view and nothing happens, the problem persists.
I created a backup of the site
I deleted everything and installed a new wordpress with only toolset and wpml, then I created a page with a view, and again, same problem, the translation of taxonomies is not done in the search filters.
As this didn't solve the problem, I restored the basic site.
I'd like to know how you got this to work on your local site?
How can I do it?

#2645063

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

I'm not sure what exactly you did, but it doesn't appear that you created a completely new View that you added to the page.

I logged in to your site and I did some checking of the data relating to the View on the home page that is stored in the database.

I found the same problem as before, and so I created my own new test View ("Toolset Test") and added it to a page of the same name. When I translated that to Spanish, the translation of the static texts which doesn't work in your View does work.

The View which is currently on your home page has an ID of 4807, and the settings (which I can only see in the database) say that it was originally added to a page/post with ID 1756. But there is no such page/post, and that is what is causing the problem.

Separately, the service types taxonomy terms are not displaying as translated because the terms do not appear to be translated. I went to WPML > Taxonomy translation and selected the taxonomy, and none of the terms appear to be translated.

#2645085

I made a copy of this page to a new toolset search page
I've added a filter search on the 2 taxonomies, and the translation of the "service" taxonomy doesn't work.
As a test, I've just translated the first "Activity Sport Travel" service into FR and ES, and they don't translate.

#2645251

Nigel
Supporter

Languages: English (English ) Spanish (EspaƱol )

Timezone: Europe/London (GMT+01:00)

"I made a copy of this page"

I see you are using a tool to clone pages; I would discourage you from doing that with pages that have Views blocks added, I suspect that may explain why the Views have not been working or translating as expected.

When I opened your new Toolset search page in the translation editor the expected texts from the View were missing, so I edited the page and removed the View I had created to focus on your new View and saved the page.

I then opened it up in the translation editor again and the missing texts were included (screenshot), so I completed the translation.

Now on the front end it works as expected (though the taxonomy filter terms are still untranslated).

#2645289

I didn't know about the pages copied with blocks, thank you.
So I created a page from scratch called "Search".
I then translated it into French and Spanish
I added a view with a search filter and the translated "Service type" taxonomies don't display in French or Spanish in the service selection box!
For the record, I've only translated the first 5 taxonomies.