godaddy-wordpress / block-gallery

WordPress gallery blocks built exclusively for Gutenberg
https://wpblockgallery.com
GNU General Public License v2.0
57 stars 13 forks source link

Translation does not work #37

Closed tomchen closed 4 years ago

tomchen commented 5 years ago

Hello,

I found this great plugin when I set up a new WordPress blog for a Chinese friend. Thank you very much for this plugin. It's intuitive and easy to use. Although it might lack some features such as, for instance, caption for each carousel items, and caption placed over each items, it's not very hard to "fix" them for advanced users who know CSS and JS.

However, after I quickly translated the /languages/block-gallery.pot file into Simplified Chinese (zh_CN) with Poedit Pro and put the two files (block-gallery-zh_CN.po and block-gallery-zh_CN.mo) into the /languages/ folder, it didn't work (except for the description of the plugin which was well translated). I then used Poedit to fetch all translatable strings from .php files (making sure those are the latest strings) and retranslate them, no luck. I also tried to put .po and .mo into /wp-content/languages/ but it didn't work either.

I then went to plugin page on wordpress.org and noticed the plugin has already been translated into several languages including Traditional Chinese (zh_TW) here, which is the most complete (100%) translation so far. I changed my zh_CN WordPress to zh_TW, redownloaded and reinstalled Block Gallery (so that zh_TW language pack here was automatically fetched into my WordPress), all those Block Gallery-related strings in Gutenberg editor still remained in English.

I've submitted my translation here.