projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8e17356
)
Fichier site.zcml passé en paramètre ou par variable d'environnement.
author
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 15 Apr 2015 11:59:10 +0000
(13:59 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 15 Apr 2015 11:59:10 +0000
(13:59 +0200)
Products/Plinn/update-i18n.sh
patch
|
blob
|
history
diff --git
a/Products/Plinn/update-i18n.sh
b/Products/Plinn/update-i18n.sh
index
409133a
..
ded6763
100755
(executable)
--- a/
Products/Plinn/update-i18n.sh
+++ b/
Products/Plinn/update-i18n.sh
@@
-1,9
+1,14
@@
#! /bin/sh
#! /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
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