Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Pull translations with Transifex client, create the mo and remove the po
#! /bin/sh
# Pull all files from Transifex;
# Minimum percentage change to whatever you want
tx pull -a --minimum-perc=100
# Create .mo files from .po files.
# Twisted by WP-Translations.org, created by grappler.
for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file && rm $file ; done

garex commented Nov 12, 2014

I want it in tx client :)

Owner

fxbenard commented Nov 25, 2014

@garex use my Grunt tasks you'll have it included then ;) https://github.com/WP-Translations/grunt-transifex-wordpress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment