I am building a new website for our company. This website will end up being offered in at least 5 languages. We sell machine tools and therefore I need to include many tables with technical data.
These tables need column labels of course. Now my question is, which procedure would you recommend to work as efficiently as possible? The normal page content is created by the plugin WPML in the different languages. However, as I understand it, WPML cannot be used for wpDataTables. Would you suggest that I create one table per language and then change the shortcode? Or should I separate table header and table content? Create only the language-neutral content in WpDataTables and add the table header via CSS/HTML? Or do you have another suggestion for me?
You are correct, the plugin doesn't work with WPML. That is, static strings can be translated, but anything you can enter manually (dynamic strings) can't.
I would create a table per language, and then use different shortcodes for them. There were other users that had the similar approach, and it turned out to be the best solution.
We will work on WPML compatibility, so hopefully in the future you won't be having to do this.
I had a lengthy exchange with WPML on the subject. The simple exchange of the table ID is unfortunately not so simple in reality.
Actually, WPML offers the possibility to include shortcodes in the translation editor via an XML file. This would make it very easy to exchange the ID. Unfortunately, this does not work in connection with wpDataTables. I was not able to determine the cause. WPML suggested whether you would like to make your product compatible with them.
Your product is excellent, as is WPML in its field, so it would be great if two very good products could work together. I also think it is very difficult to make the tables directly translatable. But at least the shortcode method should work without problems.
As mentioned in my previous response, we will work on WPML compatibility, so hopefully, in the future, you won't be having to do this. Our management already contacted them and we're waiting for a response.
I hope they will have time to work with us on the integration.
i did sme research together with Marcel from the WPML support team. It looks like that the numerical id is the problem. If you replace the id at the shortcode with a string like "AA" than WPML can show the shortcode at their editor. And then it is possible to exchange the value of ID to show another table at other languages.
The shortcode is only used to setup one table per language. If table Id in German language is the 10 , then the English language table will have for example the 50. But to do so, you have to see the Shortcode inside the WPML translation editor.
But the wpDataTables shortcode is not visible at the WPML editor. They use an XML sheme to add unknown shortcodes, but because of the numerical data type of the wpDataTables shortcode this didn´t work.
I switched now to TablePress, their shortcode use string type for the ID. This works. The point is, at TablePress you can change the ID by yourself. You can set for example a code like DE-THV-series. With this you can see which language is used at the table.
If you check my demo page at: https://cuttingtest.com/fraesmaschinen/ you can see first a wpDataTables table and then a TablePress table. At the WPML editor only the TablePress table is visible. Please refer to the screenshot. If you change your data type for the ID to string ( and if possible make it editable by enduser) the problem should be solved.
Dear TMS Team,
I need your opinion on what the best way is.
I am building a new website for our company. This website will end up being offered in at least 5 languages. We sell machine tools and therefore I need to include many tables with technical data.
These tables need column labels of course. Now my question is, which procedure would you recommend to work as efficiently as possible? The normal page content is created by the plugin WPML in the different languages. However, as I understand it, WPML cannot be used for wpDataTables. Would you suggest that I create one table per language and then change the shortcode? Or should I separate table header and table content? Create only the language-neutral content in WpDataTables and add the table header via CSS/HTML? Or do you have another suggestion for me?
Best regards
Utz
Hello Utz
Thank you for your purchase.
You are correct, the plugin doesn't work with WPML. That is, static strings can be translated, but anything you can enter manually (dynamic strings) can't.
I would create a table per language, and then use different shortcodes for them. There were other users that had the similar approach, and it turned out to be the best solution.
We will work on WPML compatibility, so hopefully in the future you won't be having to do this.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks Aleksandar,
i will do it as proposed. :-)
Best regards
Utz
You're welcome Utz
Glad I could be of service.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Aleksandar,
I had a lengthy exchange with WPML on the subject. The simple exchange of the table ID is unfortunately not so simple in reality.
Actually, WPML offers the possibility to include shortcodes in the translation editor via an XML file. This would make it very easy to exchange the ID. Unfortunately, this does not work in connection with wpDataTables. I was not able to determine the cause. WPML suggested whether you would like to make your product compatible with them.
Your product is excellent, as is WPML in its field, so it would be great if two very good products could work together. I also think it is very difficult to make the tables directly translatable. But at least the shortcode method should work without problems.
Here is the link for developers to WPML: https://wpml.org/documentation/theme-compatibility/go-global-program/
Best regards
Utz
Info regarding the XML way (but it didn´t work for wpDataTable...): https://wpml.org/documentation/support/language-configuration-files/#1-1-translate-strings
Hello again Utz
Thank you for your feedback.
As mentioned in my previous response, we will work on WPML compatibility, so hopefully, in the future, you won't be having to do this. Our management already contacted them and we're waiting for a response.
I hope they will have time to work with us on the integration.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
i did sme research together with Marcel from the WPML support team. It looks like that the numerical id is the problem. If you replace the id at the shortcode with a string like "AA" than WPML can show the shortcode at their editor. And then it is possible to exchange the value of ID to show another table at other languages.
Best regards
Utz
Thanks for that, Utz, I forwarded the ticket to our lead developer, who will be working on integration with WPML, so hopefully this helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello again Utz.
Our developer said that we will need to contact WPML so they can test it, and see what the problem is, and if there actually is a problem.
Could you please explain in a bit more detail about the shortcode? I the idea to translate the whole table using the shortcode?
We've added this as a task, so it will be attended to, I just don't have any ETA.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Aleksandar,
i am happy to help.
The shortcode is only used to setup one table per language. If table Id in German language is the 10 , then the English language table will have for example the 50. But to do so, you have to see the Shortcode inside the WPML translation editor.
But the wpDataTables shortcode is not visible at the WPML editor. They use an XML sheme to add unknown shortcodes, but because of the numerical data type of the wpDataTables shortcode this didn´t work.
I switched now to TablePress, their shortcode use string type for the ID. This works. The point is, at TablePress you can change the ID by yourself. You can set for example a code like DE-THV-series. With this you can see which language is used at the table.
If you check my demo page at: https://cuttingtest.com/fraesmaschinen/ you can see first a wpDataTables table and then a TablePress table. At the WPML editor only the TablePress table is visible. Please refer to the screenshot. If you change your data type for the ID to string ( and if possible make it editable by enduser) the problem should be solved.
Best regards
Utz
Awesome, thanks for the info, Utz
I am forwarding the ticket to our lead developer right now, and I'm sure he'll be checking out our options for the future.
This would be an awesome solution for multi-lingual websites, and he said yesterday that he's excited about hearing more.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables