-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for string translations #731
Comments
@rodica-andronache do you think this can be added easily (without a code change) like we did in WPPR? |
@contactashish13 if you mean with the wpml-config file, I'm not sure. It's a possibility but it will need to be tested |
@DanyCaissy please add this to the correct queue/version. It would also be good if you can do some research on polylang vs wpml and which we should support. Neither of them is easy. |
There is one user that asked about the WPML compatibility of our Plugin and after doing a bit of research I noticed that we don't appear on their list of compatible plugins. then I found this old enhacement that hasn't been solved yet so I posted here. @girishpanchal30 @vytisbulkevicius do you think it would be a good idea to work with WPML and make our plugin translatable? I haven't seen many users requesting it and I think it is quite a hard implementation but wanted to hear your opinion anyway. Also here is a quite recent ticket on the WPML support forum talking about the compatibility. Thank you and I'm eager to hear your opinion! |
Hey @Skystream96, Here is my opinion: Thanks |
Hey @girishpanchal30 , That sounds good but would this implementation mean that they will have another chart for that particular language, so let's say I have 3 languages on my website, this would mean I would have the same chart 3 times (once for every language) right? Wouldn't this affect performance quite drastically? @vytisbulkevicius what do you think about this? |
Yes
Yes, the above method affect database space. |
This sounds good to me, and the approach suggested by @girishpanchal30 seems to be efficient. I don't think the space of the database increases that much here to make an impact on the speed of website, right? I also heard about this request a few times so I think we can proceed with this one. P.S This request https://wpml.org/forums/topic/visualizer-plugin-compatibility/ is not related, it was a bug on our end and was fixed here - https://github.com/Codeinwp/visualizer-pro/issues/333 |
Yes, you are right it will not affect website performance. |
Hey @Skystream96 @vytisbulkevicius, As per my suggestion, I have implemented WPML plugin support. Please check and do let me know if you have any issues. Thanks |
Hi @girishpanchal30, Thank you for working on this. Also, can we move this feature to the PRO version of the plugin? Sorry for not mentioning this before, this issue was originally created in the free repo but we think it should be a pro feature. |
Yes, I have excluded other language charts from the list page. Users can see the add/edit icon when hover the flag. For frontend: For example: {site_url}/chart-demo/ - Display default language chart Do you want to display the chart on the list page?
Okay, sure! Thanks |
Hey @vytisbulkevicius,
I have moved the pro feature and also added some list improvements. Please check with the below PR. Free: #947 Thanks |
@girishpanchal30 Tested and the feature seems to be working fine for me 👍 A single mention, the flags weren't visible for me until i had this setup in the WPML settings https://vertis.d.pr/1d6Tx2 (I tried with fresh instances on tastewp/instawp and i always had to check this in order to make it work) |
@irinelenache Yes, This is the first step to enable translation support. |
Hi there! While creating the doc, I have made a few more tests, to check how this behaves and I have some questions ( maybe suggestions, if you consider them useful ):
|
Hey @vytisbulkevicius, What do you think about these questions?
Thanks |
Hi @girishpanchal30, In my point of view when clicking the flag to translate the chart we should make a clone of existing chart without an option to choose a different type of chart, the purpose of this is to translate strings. Of course, we can keep those other options available but allowing to create a completely different type of chart creates confusion IMO. Also, I tested again now in my test instance with the latest versions above and to me it doesn't work the way you defined above:
Here is my screencast - https://vertis.d.pr/v/KmglpN |
Okay
Can you please share the test instance details here? Thanks |
Sure, as this repo is public I shared it here - https://github.com/Codeinwp/visualizer-pro/pull/355 |
@vytisbulkevicius Fixed, Can you please retest with the latest commit? |
Nice, it works now correctly and translated version of the chart is rendered automatically. I'm planning to make a release but I will wait then till you make that change when creating the translation for a chart it doesn't show you the ability to create a new type and just inherits everything from the one you're translating. |
Fixed, Please check and do let me know if you have any issues. |
Works great @girishpanchal30 🚀 |
- Fixed table chart decimal number issue Decimal Numbers are ignored and not displayed #955 - Fix the scrollbar issue that happens on WP 6.1 version [WP 6.1] Chart permissions selector is not scrollable #950 - Fix PHP Warning Warning when copy (frontend action) is enabled #949 - Compatibility with the WPML translation plugin for translating charts [PRO feature] add support for string translations #731 - Integration with Woocommerce Data endpoints for creating charts [PRO feature] - Show new features on chart library page
#### [Version 3.9.0](v3.8.1...v3.9.0) (2022-11-10) - Fixed table chart decimal number issue Decimal Numbers are ignored and not displayed [#955](#955) - Fix the scrollbar issue that happens on WP 6.1 version [WP 6.1] Chart permissions selector is not scrollable [#950](#950) - Fix PHP Warning Warning when copy (frontend action) is enabled [#949](#949) - Compatibility with the WPML translation plugin for translating charts [PRO feature] add support for string translations [#731](#731) - Integration with Woocommerce Data endpoints for creating charts [PRO feature] - Show new features on chart library page
🎉 This issue has been resolved in version 3.9.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description:
Allow users to translate their dynamic data.
https://wordpress.org/support/topic/translation-with-wpml-22/
https://wpml.org/forums/topic/visualizer-charts-and-graphs/
This could be important: https://wpml.org/documentation/theme-compatibility/go-global-program/
The text was updated successfully, but these errors were encountered: