Hi @camiloluna,
Indeed, it’s not supported yet. I am not sure I will be able to support this in the free version, as I know that if I start supporting i18n plugin, it will be a huge amount of work (there is this, but also much more than that). I need to think about it.
You can also try to implement it using filters, the Meow Gallery let you modify everything easily using code 🙂
Thread Starter
Camilo
(@camiloluna)
Hi @tigroumeow,
Thanks for the reply.
I’d be more than willing to pay for the premium version to get this compatibility. Let me know if you will be working on this to purchase the license.
I’ll try to use the filters for this. If you have any idea about it and could point me in the right direction, I’d appreciate that.
Thanks!
Hi,
Sorry for the late reply. There is indeed a filter available in Meow Gallery for this. This one: ‘mgl_caption’.
You can use add_filter to catch ‘mgl_caption’, and return the new text to use instead. Your filter will be caled with two parameters: first, the current caption, and second, the $id of the media. You can check what is the current language, and call WPML function to give you the caption for that ID, in that language.
Please share the code if you write it, that could be really useful, and I could even improve upon it and add it in the plugin itself 🙂 Thank you!