Created
March 5, 2014 14:06
-
-
Save fxbenard/9367794 to your computer and use it in GitHub Desktop.
Pull translations with Transifex client, create the mo and remove the po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 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
I want it in tx client :)