PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 8, 2022

[FIXED] How to install and use po2json

 January 08, 2022     json, po, wordpress     No comments   

Issue

I want convert some wordpress .po language files to .json format and used wp-cli but PO files converted to multi files of json but i need to a single json file.

So installed po2json using:

npm install po2json

I am getting this error:

C:\Users\Mehdi\Desktop\po2json 1.0.0>po2json translation.po translation.json
'po2json' is not recognized as an internal or external command,
operable program or batch file.

Can anybody help me to use po2json easily?


Solution

I have tried to install https://openbase.com/js/@myrotvorets/po2json using:

npm i @myrotvorets/po2json

And finally I got the output with the following code:

po2json sourcefile.po > destfile.json


Answered By - Hadi Rajabi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing