Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

function61/po2json-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized version of po2json that works more like the Unix philosophy of STDIN -> program -> STDOUT.

.po files are localization files. They have a horrible custom syntax that you probably want to convert into an interoperable format like JSON so it can easier be processed into your final format.

Overview:

$ docker run --rm -i joonas/po2json
Usage: --format=raw|jed|mf [--fuzzy]

Run:

$ cat example.po | docker run --rm -i joonas/po2json --format=raw
{
   "Hello": [
      null,
      "Ahoy, Matey"
   ],
   "Yes": [
      null,
      "Aye"
   ],
   "Treasure": [
      null,
      "Booty"
   ]
}

mf format:

$ cat example.po | docker run --rm -i joonas/po2json --format=mf
{
   "Hello": "Ahoy, Matey",
   "Yes": "Aye",
   "Treasure": "Booty"
}

mf format, save to a file:

$ cat example.po | docker run --rm -i joonas/po2json --format=mf > example.json

Support / contact

Basic support (no guarantees) for issues / feature requests via GitHub issues.

Paid support is available via function61.com/consulting

Contact options (email, Twitter etc.) at function61.com

Releases

No releases published

Packages

No packages published