From 817c1aa479580bfa72b29f382597e15e42864d90 Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Sun, 23 Feb 2014 23:36:48 +0000
Subject: [PATCH] compile translations when site-updater.sh is run for the
 first time

---
 compile-messages.sh | 1 +
 site-updater.sh     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/compile-messages.sh b/compile-messages.sh
index 8dddd6e3c..f3f2eb3a2 100755
--- a/compile-messages.sh
+++ b/compile-messages.sh
@@ -11,3 +11,4 @@ else
         $PYBABEL compile -D $domain -d $TRANSDIR
     done
 fi
+touch ./.pybabel-stamp
diff --git a/site-updater.sh b/site-updater.sh
index b47aec584..901ad8964 100755
--- a/site-updater.sh
+++ b/site-updater.sh
@@ -21,3 +21,5 @@ if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TM
   echo "Python files changed, restarting server"
   touch $TOUCHFILE
 fi
+
+[ -f ./.pybabel-stamp ] || ./compile-messages.sh
-- 
GitLab