-
Hey, so this is the issue I am facing currently.
I used the beta 2.0 version of GB to build a client site (non-English-speaking client),
so now I need to localize it for my client.Typically what I would do to localize GB or GBP is to use wp-cli and run make-pot on the plugin in order to extract all the translatable strings (from the PHP files and the compressed JS files in dist), then use poedit to auto-translate it, then run make-json and I am done. This time when running make-pot on GBP 2.0 beta it’s giving me an error:
Plugin file detected. Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in phar://C:/wp-cli/wp.phar/vendor/mck89/peast/lib/Peast/Syntax/LSM.php on line 131
but no problem on GB 2.0 beta.
Any idea what’s going on here?By the way, besides using make-pot, I also tried using the string extraction feature from Poedit to generate the .pot file, however the generated pot file from Poedit fails to include the compressed version of the JS files in the comment (those js files in /dist), so the json files generated from make-json later become useless.
Any tips on a more smooth localization process will also be appreciated.
-
Alvind
Hi there,
I can run the
make-pot
command without any issues. Have you tried increasing theWP_MEMORY_LIMIT
value? Something like 512MB should be sufficient. -
I tried on a different computer and it worked then, thanks!
However, it seems like GB2 is not ready for non-English users yet, or is it?1. seems like the labels in the brand new, universal design panel are not gettext ready yet (by examining the js code)
2. in generateblocks, there are lots of gettext-ready strings which are nevertheless set in the generateblocks-pro domain, so we can’t get a complete and correct pot file systematically. (but maybe you guys will hand out a complete pot file when 2.0 steps out of beta?) -
Alvind
Yes, mostly the blocks and settings panel have been overhauled, being rebuilt from the ground up, so I expect our dev team will improve the localization once the stable release is out.
- You must be logged in to reply to this topic.