Last active
November 9, 2016 14:53
-
-
Save fxbenard/9367720 to your computer and use it in GitHub Desktop.
Script to pull translations with Transifex client and create the mo files.
This file contains hidden or 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; | |
# 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