Skip to content

Instantly share code, notes, and snippets.

@jeffery9
Last active August 20, 2016 17:03
Show Gist options
  • Save jeffery9/20e7e938b04417850e0339a7bb442a21 to your computer and use it in GitHub Desktop.
Save jeffery9/20e7e938b04417850e0339a7bb442a21 to your computer and use it in GitHub Desktop.
# !/bin/bash
for f in $(ls -d */)
do
f=${f%%/}
echo $f
touch $f/i18n/$f.pot
tx set --auto-local \
-r odoo-master.$f $f'/i18n/<lang>.po' \
--source-lang en \
--source-file $f/i18n/$f.pot \
--execute
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment