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).
Same need here ! would be great to have this
Neko peti commented
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.
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!
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
Joseph Valenti commented
when the Site language change this plugin also change here language ,
especially the WordPress and WPML Plugin
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).
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
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/