aboutsummaryrefslogtreecommitdiffstats
path: root/devtools
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-12-13 09:50:13 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-12-13 10:04:10 -0600
commit8471c5b4d289f4d7904213c3f8d7d9b429243ff4 (patch)
tree077b22a5b11c251fdd4877c61ededc4630043c32 /devtools
parent8441e87d75185220d76f27428a6019afe589ab7d (diff)
downloadmediagoblin-8471c5b4d289f4d7904213c3f8d7d9b429243ff4.tar.lz
mediagoblin-8471c5b4d289f4d7904213c3f8d7d9b429243ff4.tar.xz
mediagoblin-8471c5b4d289f4d7904213c3f8d7d9b429243ff4.zip
Submitting workaround to skip compiling Lojban. Sniff :(
We'll eventually support Lojban again. This issue fixes #1071, but leaves #1070 open.
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/update_translations.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/devtools/update_translations.sh b/devtools/update_translations.sh
index 29743f94..1887e7f5 100755
--- a/devtools/update_translations.sh
+++ b/devtools/update_translations.sh
@@ -46,7 +46,22 @@ echo "==> Re-Pulling translations from Transifex"
./bin/tx pull -a
echo "==> Compiling .mo files"
-./bin/pybabel compile -D mediagoblin -d mediagoblin/i18n/
+
+## This used to be a lot simpler:
+# ./bin/pybabel compile -D mediagoblin -d mediagoblin/i18n/
+
+## But now we have a Lojban translation that we can't compile
+## currently. We don't want to get rid of it because we want it... see
+## https://issues.mediagoblin.org/ticket/1070
+## to track progress.
+
+for file in `find mediagoblin/i18n/ -name "*.po"`; do
+ if [ "$file" != "mediagoblin/i18n/jbo/LC_MESSAGES/mediagoblin.po" ]; then
+ ./bin/pybabel compile -i $file -d mediagoblin/i18n/ -l `echo $file | awk -F / '{ print $3 }'`;
+ else
+ echo "Skipping $file which pybabel can't compile :(";
+ fi;
+done
echo "==> Committing to git"
git add mediagoblin/i18n/