-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors using make-json #146
Comments
Heya 👋 Please make sure that you have an actual We recently fixed this fatal error in #133. You can install the latest version of this package over what's included in WP-CLI by running this:
It's worth noting that we might need to improve that handling a little bit as per the latest comments on #133, especially since I haven't tested the case of missing language headers... So stay tuned! |
👋 I added the Language header and updated the wp-cli as specified, and now getting a new error which looks like missing files in WP-CLI
|
Ugh, so the same issue as #133 (comment) then. Although the warnings are new it seems. I'll have a look hopefully later today to fix this once and for all. |
Hello, I'm having the same problems here and just wondering if there is a workaround? I've got a fairly basic English to French translation done with Poedit. The language header is correct and I installed the latest version of the package including the fix for #133 Perhaps I could install and earlier version of the package as none of my languages are particularly exotic and are surely on the list? |
@mantismamita Thanks for the ping! Once #150 is merged, this issue should go away. You can then update the package (again) and it should work. |
Fabulous, I look forward to using the tool rather than doing it by hand (not very fun.) Cheers for your hard work. |
@swissspidy I've updated the package and the JSON generation now works as expected 🎉 However, after the cli command has been run, the .po and .mo files are reset to a previous version and the latest translations are lost. My workflow:
|
Additional note: the generated JSON is correct: only the PO file is reset. |
@markhowellsmead What you mean with reset? When you run |
Sorry for the delayed response, @swissspidy. I missed the |
I'm trying to use the make-json command to generate the file from a po file.
Here are the set of commands I'm trying and the error, I think I'm missing a setting somewhere but not sure where.
I copy the .pot file over to
myguten-eo.po
and edit to look like:I then try to make the json file using:
The text was updated successfully, but these errors were encountered: