]> git.parisson.com Git - docker-django-scripts.git/commitdiff
[Translations] : add bash script to build all messages of all apps / lib
authorEmilie <zawadzki@ircam.fr>
Wed, 16 Aug 2017 09:00:15 +0000 (11:00 +0200)
committerEmilie <zawadzki@ircam.fr>
Wed, 16 Aug 2017 09:00:15 +0000 (11:00 +0200)
build_messages.sh
translations/messages.sh [new file with mode: 0755]

index 822e254048ef10fbf75cd0357fda8bef7535ced4..c47133b39390c05c9ed9e4f7e7c6189a922ebfe2 100755 (executable)
@@ -1,4 +1,3 @@
 #!/bin/sh
 
-docker-compose run app python manage.py makemessages -a
-docker-compose run app python manage.py compilemessages
+docker-compose run app bash /srv/bin/translations/messages.sh
diff --git a/translations/messages.sh b/translations/messages.sh
new file mode 100755 (executable)
index 0000000..aeb2a36
--- /dev/null
@@ -0,0 +1,10 @@
+# docker-compose run app python manage.py compilemessages
+cd /srv
+
+find $(pwd)  -type d -name 'locale' -print | while read f; do
+    cd "$f" && cd ..
+    echo $(pwd)
+    django-admin makemessages -l fr
+    django-admin makemessages -l en
+    django-admin compilemessages
+done