Illia Sanz
Forum Replies Created
-
Hi. This is already available. If you use Woocommerce addon, you can find “Type of product” in Woocommerce grid block
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Plugin Greenshift closed??No panic, please. Review team asked to remove license checker from code of plugin as it’s not allowed now. Once they confirm removal, plugin will be enabled back
all addons have wp_set_script_translations, if you don’t have it, then it’s not actual version. These are actual versions for today, make sure that you use them
greenshiftgsap – 3.7.7
greenshiftquery – 5.9.4
greenshiftwoo – 2.4
greenshiftseo – 1.0.2
greenshiftchat – 1.2.3
as I wrote, addons also have updated unified .pot + some changes so you can use more simplified version of json file without hash (this was reason why it didn’t work for some users). I already provided you link on tutorial. Of course, we will not provide src folder for addons. First, it will increase size of package significantly. Second, it’s intellectual property. .pot file will be regenerated automatically each update
if it’s erasing all strings then how wordpress translation project get strings? Packed scripts can be unpacked and we use official wp scripts package for packing scripts. And can you at first try? I already wrote that all strings now merged into one .pot file, including backend and editor, you just need to generate json. Please check again tutorial, it doesn’t have step with generation of .pot file, you just need to copy it from actual version. Please try exactly how explained in tutorial and write me results
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Visibility Block QuestionQuery addon also updated with this new feature. did you test it?
For core plugin – you do not need to use .pot file and json, it’s made automatically on WP translation page. For other plugins – you will need generated .pot file.
I understand that localization is complex, so I made tutorial. Also, I updated localization file for addons, so you don’t need to generate it, just copy and rename
Tutorial is here https://greenshiftwp.com/documentation/greenshift-extra/translation-of-custom-gutenberg-wordpress-plugin/
I tested for some languages and it’s working for me. I hope this helps
one more time. Plugin has .pot file for server side rendering
for JS translation, you need to make json file and make pot file from bundled file via terminal. If you don’t know how to use terminal, I can make it for
the only thing which I see, that WP repository didn’t unpack file for blocks, even if it has correct registration, I will write to Gutenberg issues https://cleanshot.com/share/DYfYLrdT But this is not what we can change, it’s bug of repository
@cmhello Now about polish version, each version has own editors, we don’t translate by ourself. For example, on your video you used Slider, this is source of slider, as you see, all strings are correct and localized https://drive.google.com/file/d/1VD4uX28AWcT8x1VUy_6erHPlD9A6l44t/view?usp=drive_link
With all respect, I recommend to study question first before blaming that we do something wrong. As I wrote, I can provide you source file and you will see that everything is correct
This is example https://cleanshot.com/share/PcDzyKjG
1175 fields – this is correct, this is how much strings are in JS files. JS translation is working not the same as PHP. It’s packed by webpack, then unpacked via i18n package and wp_set_script_translations. On plugins hosted on wp.org, i18n package is automatically unpack strings and you have them https://translate.wordpress.org/projects/wp-plugins/greenshift-animation-and-page-builder-blocks/
On Custom blocks not hosted on wp.org, you need to do this manually. This is example how to do this https://devmaverick.com/how-to-translate-a-custom-wordpress-gutenberg-block/
Why only 1175 fields? Because JS and PHP have different way to translate and different localization files. PHP strings can be translated from .pot file that is placed in lang folder (and languages folder in premium addons).
Of course, Gutenberg should have more simple translation way for JS and this was discussed for years but currently the only way is still to generate custom json via i18n. If you provide me this json file for your language I will be glad to include it in pluginHere is another good article https://awhitepixel.com/wordpress-gutenberg-create-custom-block-part-8-translation/
If you can, attach link on your page, I will make you code. Or you can simply feed link to chatgpt or claude and it will make you css to hide section
Thank you for your review, however let me disagree. First of all, of course, all of our plugins have correct usage of __(“text”, “textdomain”). We have zero non translated strings. There are just few of them that should not be translated like names of libraries, etc.
Also, of course, you can simply search by pattern (__””) and you will see that all strings also have textdomain.
Yes, you reported this years ago but it’s not our fault that wordpress still has no good translation for third party addons for gutenberg. You can translate plugin by using next tutorial https://developer.wordpress.org/block-editor/contributors/localizing/ It’s quite complex for gutenberg and requires to use terminal, but again, it’s not our fault.
I am ready to provide you source file of one of our addon so you can see that from our side everything is correct, all strings are translated. I hope you will change rating after this
Hi. Our plugin doesn’t have review summary. Maybe you mean theme?
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] How can I reduce this gap?if you use Row, it has Gap option, it’s first option in Row settings