[ADD]Odoo dev : i18n utility for exporting automatically french translation
This commit is contained in:
parent
8cef1a9a6d
commit
83ebb4beee
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
4
odoo/golem/i18n.sh
Normal 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
|
@ -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
|
||||
|
@ -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
4
odoo/odoo/i18n.sh
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user