X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/aeb758b645034bb95fe967aca66aa014f5bce97b..65ff5cb6e355242be8f93d5ef1f26190af3f44e6:/Products/Plinn/update-i18n.sh?ds=sidebyside diff --git a/Products/Plinn/update-i18n.sh b/Products/Plinn/update-i18n.sh index 409133a..ded6763 100755 --- a/Products/Plinn/update-i18n.sh +++ b/Products/Plinn/update-i18n.sh @@ -1,9 +1,14 @@ #! /bin/sh -i18nextract --path . --site_zcml /export/zope_instances/jma/etc/site.zcml --domain plinn -o locales +if [ !$1 ]; then + ZCML=$INSTANCE_HOME/etc/site.zcml +else + ZCML=$1 +fi -cat locales/plinn.pot locales/plinn-manual.pot > locales/plinn-all.pot -mv locales/plinn-all.pot locales/plinn.pot +i18nextract --path . --site_zcml $ZCML --domain plinn -o locales + +cat locales/plinn-manual.pot >> locales/plinn.pot msgmerge --update --no-fuzzy-matching locales/fr/LC_MESSAGES/plinn.po locales/plinn.pot msgmerge --update --no-fuzzy-matching locales/en/LC_MESSAGES/plinn.po locales/plinn.pot