llaske / ini2po

webL10n JavaScript ini file to GNU gettext PO file converter
Apache License 2.0
0 stars 0 forks source link

Setup

git clone https://github.com/llaske/ini2po.git 
cd ini2po
npm install -g

Convert INI to PO

ini2po is a command script to generate gettext PO files from INI file formatted for webl10n.

ini2po <inifile>

ini2po looks for a default language section [*]. If it finds it, it generates a template.pot file using this section.

Convert PO to INI

po2ini is the reverse command: it takes a set of gettext PO files and convert it to an unique INI file formatted for webl10n.

po2ini [-o <outputfile>] <pofile1> [<pofile2> ...]

po2ini replaces content of the template.pot file by a default language section [*].