Title: Issue with Toolset plugin
Last modified: August 21, 2016

---

# Issue with Toolset plugin

 *  [poco06](https://wordpress.org/support/users/poco06/)
 * (@poco06)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/issue-with-toolset-plugin/)
 * Hello,
 * I’m using Polylang and find it very useful. Thanks for this plugin.
    In the meantime,
   I have installed Toolset plugin (Types + Views) and have an issue in displaying
   the widget page in admin. Having discussed this with the Toolset support team,
   I’ve got this answer I have copied for you : —————————————————————— Dear Pat,
 * The issue here is that Polylang is trying to provide the functionality of WPML,
   but its failing because get_current_language() is not implemented.
 * In our plugin we check if icl_object_id function is available, and from there
   we assume that WPML is installed.
 * Another solution would be for Polylang to provide get_current_language() support,
   or for them to use a different prefix.
 * Hope this help,
    Caridad
 * Post Link: [http://wp-types.com/forums/topic/issuie-with-views-gantry-framework/#post-190492](http://wp-types.com/forums/topic/issuie-with-views-gantry-framework/#post-190492)
   ——————————————————————-
 * Could you have a look on this and tell me if there is a way to make both Polylang
   and Toolset working together (that’s my wish !).
    Thanks Pat
 * [http://wordpress.org/plugins/polylang/](http://wordpress.org/plugins/polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/issue-with-toolset-plugin/#post-4534629)
 * The diagnostic of Toolset support team is correct.
    Yes Polylang provides some
   [documented api functions of WPML](http://wpml.org/documentation/support/wpml-coding-api/).
 * This helps themes and plugins developpers (and thus their users/customers) to
   add multilingual support without writing something specific for Polylang. They
   can support both plugins in the same time 🙂
 * But Polylang is *not* WPML and Polylang does not implement internal functions
   of WPML (otherwise Polylang would just be a copy of WPML which is of course not
   the case).
 * However I cannot prevent that some themes/plugins use these WPML internal functions,
   thus automatically breaking the compatibility with Polylang.
 * Regarding Toolset, obviously I can’t support a Premium plugin which is not freely
   available, so I may solve this error because you give enough information for 
   me to solve it. But other errors may appear.
    I also don’t expect that Toolset
   authors will support Polylang, since they already commercialize WPML 😉
 * Try adding this code in a personal plugin:
 *     ```
       class PLL_Sitepress {
       	function get_current_language() {
       		return pll_current_language();
       	}
       }
       $sitepress = new PLL_Sitepress;
       ```
   
 * With no warranty…
 *  Thread Starter [poco06](https://wordpress.org/support/users/poco06/)
 * (@poco06)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/issue-with-toolset-plugin/#post-4534630)
 * Hello Chouby,
 * Many thanks for your support and answer.
 * I will try it and come back to you if any issue. In the meantime, I have also
   contacted the Toolset support team and they are working on this from their side.
 * Thanks again
    Pat
 *  Thread Starter [poco06](https://wordpress.org/support/users/poco06/)
 * (@poco06)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/issue-with-toolset-plugin/#post-4534653)
 * Hello Chouby,
 * I have tested it and this is working like on the back end side (the plugin positions
   are now seenable), but the front end is completely broken !
 * Any other idea ?
    Pat
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/issue-with-toolset-plugin/#post-4534654)
 * I am sorry. But as I mentionned above, I could provide a fix for the first error
   as it was well documented. But I can’t help with Premium plugins for which I 
   have no access to the code.

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

The topic ‘Issue with Toolset plugin’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/issue-with-toolset-plugin/#post-4534654)
 * Status: not resolved