Forums Forums Search & Filter Pro How to translate "All items" label with WPML?

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #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!

    Anonymous
    #225894

    Wouldn’t it make sense to have a hook for the “All item” label, so everybody could easily take care for the translations?

    Trevor
    #225917

    For 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
    #227499

    Thank 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.

    Trevor
    #227501
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)