acsone / click-odoo-contrib

Useful Odoo scripts and utility functions, based on click-odoo
GNU Lesser General Public License v3.0
108 stars 59 forks source link

click-odoo-initdb: add parameter --load-language #54

Open Cedric-Pigeon opened 5 years ago

Cedric-Pigeon commented 5 years ago

In some cases, it could be really useful to be able to load translations immediately while initialising a database.

e.g.: when you do a test suite with several tests loading some translations could cost some time. A A solution is to load the language during the init and check in the test's setup if the language is already installed.

sbidoul commented 5 years ago

Sounds like a good idea. Can you elaborate the specification a little bit? Is that an option you can repeat to load several languages at once? Do these languages replace the default en language, or are they loaded in addition to it?

flotho commented 3 years ago

Hi, @Cedric-Pigeon @sbidoul 2 great questions here, maybe both options could be useful , one for the default language and another one for additional langages.