Hi Dear users of WordPress Tooltip plugin Hope this message find you are doing well and having happy day 🙂 An amazing user continuously made many great suggestions, such as ‘How to Replace the “Glossary” Link in the Glossary Breadcrumbs in the WordPress Tooltips Plugin.’ In response, we developed two versions for this user. Then, this user raised a new question, asking us if WordPress Tooltips can support GTranslate to implement multilingual tooltips:
Hello,
unfortunately I have another small problem: As you can see in the picture, the ToolTip is unfortunately not translated. The GTranslate support team has found out what the problem is. Can you fix the problem:Thank you very much
————————-
Hi,
I can see that the content of the tooltips is in JavaScript format.
Unfortunately, GTranslate can not translate hardcoded textual parts written inside JavaScript files, or texts written inside regular objects or arrays.
Our system will be able to translate textual parts if texts are written inside JSON objects:
Example::
{
“buttonText”: “Contact us”,
“buttonSize”: “large”, ”
“buttonIconSize”: 24,
“menuSize”: “large”
}
If you can convert it to JSON, we will be able to translate it. You can check about this with your theme developer or the plugin’s support that provides the Tooltips.
We checked the wordpress GTranslate plugin,we found it is a great plugin, the GTranslate plugin is a translation tool for websites that enables users to translate the content of a site into different languages. It uses Google Translate’s technology to provide instant translation and can support multiple languages, thereby allowing website owners to reach a wider audience by making their content accessible to non-native speakers.
Key Features:
- Automatic Translation: Translates website content automatically without requiring manual input.
- Multiple Language Support: Supports a wide range of languages, making it easier for global audiences to access the content.
- User-Friendly Interface: Typically easy to install and integrate into various website platforms like WordPress, Joomla, and others.
- Customizable Options: Allows users to customize the translation settings and choose which languages to offer.
Use Cases:
- E-commerce Sites: Enable customers from different regions to understand product descriptions and policies.
- Blogs and News Websites: Reach a broader readership by providing content in various languages.
- Educational Websites: Provide learning resources in multiple languages for diverse audiences. GTranslate can significantly improve user experience on multilingual websites by breaking down language barriers.
We really like it, of course we hope we can support it, after checked their FAQ, we found they said:
Is the content output in Javascript also translated?
It is assumed that the translation target is output in HTML. Please note the parts output in Javascript are not supported for translation and cannot be edited for translation.
Then we tried to find an example of GTranslate integrating with other plugins that use JavaScript. However, in the support forum, we often found the support advising users to remove those plugins or templates that use JavaScript, so we couldn’t find similar reference cases. We can only rely on ourselves to work hard to achieve this.
We carefully considered the possibility of converting our JavaScript code into JSON format.
1:Over the past many years, we have received much amazing user feedback, in which they told us that the content of their tooltip items exceeds 5,000 words, and they are using about 200 tooltips on one page, which makes the page load very slowly. They do not want the full text of the tooltip to be displayed in the HTML source code of the WordPress page.
We have done a lot of hard work to remove the full text of the tooltip from the page source. In fact, we generated a JavaScript file that includes all tooltip titles, contents, etc., in a dedicated JavaScript file to speed up the loading time of the WordPress page. So if we use JSON to display the full text of the tooltip, it may cause the page speed to be very slow, which is not good for WordPress tooltip users.
2: Currently, WordPress tooltips have become a very complex system. For example, users can input shortcodes within the content of tooltips. If GTranslate translates the shortcodes and their input parameters into other languages, it will completely break the functionality of the users’ tooltips. Not only that, but WordPress tooltips now support many features, such as videos, audio, images, maps, PDFs, wikis, and many more. Any change to any part could potentially disrupt the functionality of the users’ tooltips.
3: “JSON” is a great technology, and JavaScript is currently a mainstream core technology in browsers and many codebases. Our WordPress tooltips are also developed based on many mainstream core technologies, and we cannot abandon these modern core technologies. Furthermore, WordPress tooltips have now become an ecosystem. Some of our heavy users have informed us that they have added several modules based on our WordPress tooltips API, and some of these modules are built on JavaScript. We cannot abandon the entire ecosystem, as it would require many users to reinvest and expend considerable manpower to redevelop subsystems based on JSON, which would lead to significant waste and conflict.
After much research and exploration, we finally came up with a solution: to generate a separate JSON file based on the JSON format of the user’s response. I believe this might provide a lead for great plugins like GTranslate to explore how to support the vast number of plugins that currently utilize JavaScript technology, instead of asking users to remove plugins and templates that use mainstream internet technologies. We are willing to make every effort to work together with GTranslate. 🙂
How to generate all items of WordPress Tooltips as a JSON file?
1: Login to wordpress tooltip plugin site and click “download” menu item to download wordpress tooltip pro plus plugin which version >= 31.7.8
2: Login your wordpress site as admin , in WP dashboard, please click “Plugins” menu.
3: If you installed wordpress tooltips free plugin or old wordpress pro plugin, please deactivate it and delete the old wordpress tooltip plugin , then in the wordpress “Plugins” panel, please click “add new” link at the top of the plugins panel to install the wordpress tooltips pro plus plugin which downloaded from tooltips.org, please upload the wordpress tooltips plugin zip file which you downloaded from wordpress tooltip pro plus plugin , then activate the new wordpress tooltip plugin version which you installed via plugins menu
4: In wordpress dashboard, click the “Tooltips” menu item
5 Then click “Reset Tooltips” sub menu-item, In “Reset Tooltips” panel, you will find a new option “Generate Tooltips Json File”:
Simply click the “Re-generate JSON” button. Then, in the root folder of wordpress tooltips plugin, you will find the JSON file — tooltips.json, in which we export all tooltip’s title / content as you requested 🙂
If you need more things, please tell us, we are very happy to help you, and we are willing to make every effort to work together with GTranslate. 🙂
We also offer other multilingual tooltip solution, such us Polylang tooltips, you can find our detailed step by step document at: How to create multilingual tooltips using the Polylang plugin with wordpress tooltips
We are developing new version to support more multilingual plugin 🙂
Thanks, have a blessed day with your family 🙂
Best Regards,
WordPress tooltips plugin support




Leave a Reply