Forums › Forums › Search & Filter Pro › How to translate "All items" label with WPML?
Tagged: WPML
- This topic has 4 replies, 2 voices, and was last updated 4 years, 11 months ago by Trevor.
-
Anonymous(Private) November 5, 2019 at 3:32 pm #225849
Hi. I’m looking for a way to translate the “All items” label in WPML. The search form works with a custom taxonomy (“brand”) of woocommerce products. I tried the solution mentioned in https://support.searchandfilter.com/forums/topic/how-to-translate-all-items-label-with-wpml/ but get the following error: ” Error: There are 2 Search Forms using display mode WooCommerce Shop – you may only have 1″.
Furthermore the single form works perfectly with all the different languages. So it seems, that the cache has all entries for all languages. To use different forms would mean to have to maintain different caches which wouldn’t be very efficient.
Somehow the “All items” label of the product category filter is already translated but I haven’t been able to find out where this comes from.
Thank you!
Trevor(Private) November 6, 2019 at 1:57 pm #225917For each form, you must use the translate form option so that you do not have the error message. This way you will have one form per language, and then in the form you can translate the All Items label manually. The reason it translates for the taxonomy is becuase that will have been left with the default label, which is made by looking at the taxonomy Labels, which themselves will be translated.
I believe that WPML has a WooCommerce addon?
Anonymous(Private) November 25, 2019 at 9:27 am #227499Thank you for the answer.
It works, if you create the filter independently in every language (and not if you translate it with the plus sign).
However, I still think this is a big overhead, because now you have several caches which you have to take care about and which seem to contain exactly the same information.
-
AuthorPosts