• 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
    ——————————————————————-

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    The diagnostic of Toolset support team is correct.
    Yes Polylang provides some documented api functions of WPML.

    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

    (@poco06)

    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

    (@poco06)

    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

    (@chouby)

    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.