I suggest you ...

Support Wordpress WPML (translation plugin) so that the right chat language shows

WPML is the biggest Wordpress pugin. I'd like the chat to show the right language. My customer's language depends on the language they chose (in WPML).

105 votes
Sign in
Sign in with: Facebook Google
Signed in as (Sign out)
You have left! (?) (thinking…)
A shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: Facebook Google
Signed in as (Sign out)
  • Neko peti commented  ·   ·  Flag as inappropriate

    Think about translation, today many websites need at least 2 languages, when user changes language your plugin should appear in his language if offered by website owner. This is very often connected to WPML WordPress plugin.

  • Tofandel commented  ·   ·  Flag as inappropriate

    Just add this custom xml in your WPML config :

    <key name="tawkto-embed-widget-widget-id" />

    You will now need to create a new widget for each language you want it translated to, change the language of the widget and then locate the widget id

    The default widget id is always 'default', the new widget will have a 9 characher id that you can find in the script to include the widget

    Now you just have to copy this widget id

    Then in the string translations you can search for "tawkto-embed" and in the translation of the right language copy this widget id

    Your widget is now translated the same as your website, congratulations!

  • Anonymous commented  ·   ·  Flag as inappropriate

    this will be great but they are so slow maybe next 5 years they finish it when we all use mylivechat, purechat or chatib.us

  • Nadhir commented  ·   ·  Flag as inappropriate

    when the Site language change this plugin also change here language ,
    especially the WordPress and WPML Plugin

  • Gumanjee commented  ·   ·  Flag as inappropriate

    Change the UI of tawk.to allow use of multiple widgets on the same site based on language (WPML is a plugin that manages multilingual sites in WordPress).

    So, basically, instead of just dumbly throwing in a piece of javascript code just before </body>, the plugin will check the language of the page, and then based on the widget chosen for that language in the plugin settings, it will put the javascript code for that particular widget.

    The UI is simple, the if...then...else is simple. But how does the plugin know the language of the page? Aha! That's where WPML comes in.

    It appears that the basics are simple:

    1) Add another parameter in the ajax call for the language. You can use the ICL_LANGUAGE_CODE constant to know the active language.
    2) Get that parameter and do this at the top of your ajax process:
    $lang = $_POST["lang"] //or whatever you used
    global $sitepress;

    By the way, the WPML guys are generally happy to help other plugin developers make their plugins compatible. You may contact them via http://wpml.org/documentation/theme-compatibility/go-global-program/

Feedback and Knowledge Base