Skip to content

Instantly share code, notes, and snippets.

@fxbenard
Created March 5, 2014 14:06
Show Gist options
  • Save fxbenard/9367794 to your computer and use it in GitHub Desktop.
Save fxbenard/9367794 to your computer and use it in GitHub Desktop.
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
Copy link

garex commented Nov 12, 2014

I want it in tx client :)

@fxbenard
Copy link
Author

@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