From 27d74ad109a7c05e3650828a2389a0562815281a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Wed, 15 Apr 2015 13:59:10 +0200 Subject: [PATCH 1/1] =?utf8?q?Fichier=20site.zcml=20pass=C3=A9=20en=20para?= =?utf8?q?m=C3=A8tre=20ou=20par=20variable=20d'environnement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Products/Plinn/update-i18n.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.20.1