Title: Attribute translate polylang?
Last modified: August 31, 2016

---

# Attribute translate polylang?

 *  Resolved [herWALDI](https://wordpress.org/support/users/herwaldi/)
 * (@herwaldi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/)
 * How translate attributes polylang?
 * [https://wordpress.org/plugins/woocommerce-products-filter/](https://wordpress.org/plugins/woocommerce-products-filter/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [RealMag777](https://wordpress.org/support/users/realmag777/)
 * (@realmag777)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6906945)
 * Just now WPML only ..
 *  Thread Starter [herWALDI](https://wordpress.org/support/users/herwaldi/)
 * (@herwaldi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6907070)
 * 1. Open file select.php (wp-content/plugins/woocommerce-products-filter/views/
   html_types)
 * 2. Search code
 *     ```
       <select class="woof_select woof_select_<?php echo $tax_slug ?>" name="<?php echo $tax_slug ?>">
           <option value="0"><?php echo WOOF_HELPER::wpml_translate($taxonomy_info) ?></option>
       ```
   
 * 3. Replace code:
 *     ```
       <select class="woof_select woof_select_<?php echo $tax_slug ?>" name="<?php echo $tax_slug ?>">
           <option value="0"><?php echo pll__('woof_select_'. $tax_slug .''); ?></option>
       ```
   
 * 4. Open functions.php themes, add line:
 *     ```
       pll_register_string('Materiał', 'woof_select_pa_material', 'Filtrowanie', $multiline);
       ```
   
 * Done 🙂
 *  Plugin Author [RealMag777](https://wordpress.org/support/users/realmag777/)
 * (@realmag777)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6907096)
 * If its really works, thanks 😉 I will keep this link for such question …
 *  [lyonbeton](https://wordpress.org/support/users/lyonbeton/)
 * (@lyonbeton)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6907180)
 * Hi Guys,
    I’ve tried this code with no success. It doesn’t make any difference
   with or without theses new lines. Maybe I’m doing something wrong… In the functions.
   php file I need to add as many lines as I have attributes is that correct ? And
   it should be used like this : `pll_register_string('[My attribute name n°1]','
   woof_select_pa_[My attribute slug n°1]', '[My attribute name translated]', $multiline);`
   Is that correct ?
 * Anyway, with or without these new lines of code, here’s my issue.
    I use Polylang
   plus a plugin called Woocommerce Plugin Integration : [https://wordpress.org/plugins/woocommerce-polylang-integration/](https://wordpress.org/plugins/woocommerce-polylang-integration/)
 * I use your plugin with shortcodes on my pages to display the filters and the 
   products list.
    It works fine with the default language : english.
 * With the secondary language (French), when I load the page for the first time(
   or when I put the desired filters as parameters of the url) I have both the products
   and the filters in french with the good number of products displayed in the filters
   area. It works very well.
    But as soon as I click on any filter, the plugin reload
   the page with the default language for the filters (English) and the secondary
   language for the products (French). It results in having the entire list of products
   in french in the main area and in the filters area, I have english filters that
   I can’t use because they are all with zero match.
 * Can you help me on this one ?
 * Its the last think that stops me from buying the pro version of your plugin.
   (
   and I don’t want to use WPML as it makes my website very slow)
 *  Plugin Author [RealMag777](https://wordpress.org/support/users/realmag777/)
 * (@realmag777)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6907185)
 * [@lyonbeton](https://wordpress.org/support/users/lyonbeton/)
 * I met such situation with polylang plugin and what I can say – they are absolutely
   incompatible – a lot of errors. Sorry, but I have no plans for adapting for this
   just now …
 *  [lyonbeton](https://wordpress.org/support/users/lyonbeton/)
 * (@lyonbeton)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6907186)
 * Ok, thank you for your honesty.
    2 options now for me: – go back to WPML which
   is better supported by a lot of plugins out there and have a slower site – keep
   Polylang to have a faster website and sacrifice some functionalities … Don’t 
   know what to do yet…
 *  Plugin Author [RealMag777](https://wordpress.org/support/users/realmag777/)
 * (@realmag777)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6907187)
 * Hello
 * Try use Polylang, and if you will meet troubles again – use WPML+cache plugins–
   you have shop – which have minimum interaction with user – so cache plugin will
   resolve a lot of troubles with performance …

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Attribute translate polylang?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-filter/assets/icon-256x256.png?rev=
   2844301)
 * [HUSKY - Products Filter Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-products-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-filter/reviews/)

## Tags

 * [woof](https://wordpress.org/support/topic-tag/woof/)

 * 7 replies
 * 3 participants
 * Last reply from: [RealMag777](https://wordpress.org/support/users/realmag777/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/attribute-translate-polylang/#post-6907187)
 * Status: resolved