Skip to content

Instantly share code, notes, and snippets.

@fxbenard
Last active November 9, 2016 14:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxbenard/9367720 to your computer and use it in GitHub Desktop.
Save fxbenard/9367720 to your computer and use it in GitHub Desktop.
Script to pull translations with Transifex client and create the mo files.
#! /bin/sh
# Pull all files;
# 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 ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment