Illia Sanz
Forum Replies Created
-
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.ww.wp.xz.cn/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.ww.wp.xz.cn/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
Hi. I don’t think that it’s possible in current time because of different architecture of menu. But you already can assign dynamic to menu. Select UL block, and for type of content, select Dynamic. Then you can connect it to show Query and latest pages or categories, etc. this will require to map also links to proper fields.
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] How can I remove this space?I don’t know how you added block, but you need to add margin top as 0 on it
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Visibility Block QuestionCurrently this option is missing. It checks current user and not author user. We will add this option in next update of query addon
I see, but these bars are added by Youtube itself, not by our plugin. Problem is that you set 3:2 ratio for video for mobiles, but youtube has no such ratio so it’s trying to fill the gap by adding these bars
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] Auto play for overlay videoThis is correct and expected logic. If you need want to have one click, you can use block which is called Video Lightbox