[ADD]Odoo dev : i18n utility for exporting automatically french translation

This commit is contained in:
Fabien BOURGEOIS 2018-06-01 08:12:55 +02:00
parent 8cef1a9a6d
commit 83ebb4beee
8 changed files with 14 additions and 0 deletions

View File

@ -43,6 +43,7 @@ services:
image: registry.yaltik.net/odoodev:yaltik10
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20

View File

@ -7,5 +7,6 @@ COPY pgcli.sh ./
# Odoo specific
RUN pip install --user watchdog
COPY shell10.sh ./
COPY i18n.sh ./
COPY launch10.dev.sh ./launch10.sh
ENV DEV 1

View File

@ -7,5 +7,6 @@ COPY pgcli.sh ./
# Odoo specific
RUN pip install --user watchdog
COPY shell10.sh ./
COPY i18n.sh ./
COPY launch10.dev.sh ./launch10.sh
ENV DEV 1

4
odoo/golem/i18n.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export="$2".po --modules="$2" && mv "$2".po "$2".pot && cd /opt/odoo
cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export=fr.new.po --modules=mie_sale --language=fr_FR && cd /opt/odoo

View File

@ -7,5 +7,6 @@ COPY pgcli.sh ./
# Odoo specific
RUN pip install --user watchdog
COPY shell10.sh ./
COPY i18n.sh ./
COPY launch10.dev.sh ./launch10.sh
ENV DEV 1

View File

@ -7,5 +7,6 @@ COPY pgcli.sh ./
# Odoo specific
RUN pip install --user watchdog
COPY shell10.sh ./
COPY i18n.sh ./
COPY launch10.dev.sh ./launch10.sh
ENV DEV 1

4
odoo/odoo/i18n.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export="$2".po --modules="$2" && mv "$2".po "$2".pot && cd /opt/odoo
cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export=fr.new.po --modules=mie_sale --language=fr_FR && cd /opt/odoo

View File

@ -27,6 +27,7 @@ services:
image: registry.yaltik.net/odoodev:yaltikpy3o10
environment:
DEV: 1
CODE_FOLDER: code
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20