Launchpad automatic translations update.
[odoo/odoo.git] / gen_translations.sh
index 7d5ec68..43b2e16 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/sh
 
-usage()
-{
+usage() {
 cat << EOF
 usage: $0 -a
 usage: $0 DIR OUTPUT_FILE
@@ -32,7 +31,21 @@ shift $((OPTIND-1))
 if [ -n "$do_all" ]
 then
     echo "Extracting all the translations"
-    $0  addons/base/static/src/ addons/base/po/base.pot    
+    executable=$0
+    extract_module() {
+       $executable addons/$1 addons/$1/po/$1.pot 
+    }
+    extract_module web
+    extract_module web_calendar
+    extract_module web_dashboard
+    extract_module web_default_home
+    extract_module web_diagram
+    extract_module web_gantt
+    extract_module web_graph
+    extract_module web_hello
+    extract_module web_chat
+    extract_module web_mobile
+    extract_module web_rpc
 elif [ -n "$2" ]
 then
     ./npybabel.py extract -F babel.cfg -o $2 -k _t --no-default-keywords $1