6 echo $0 "initialises po/ i18n catalogues in empty language sub-folders."
7 echo $0 "is deprecated and may be removed in the future."
8 echo "Hint: run i18n-add-language.sh instead."
10 [ -d .svn
] && SCM
="svn"
11 git
=$
( command -v git
2>/dev
/null
)
12 [ "$git" ] && "$git" status
>/dev
/null
&& SCM
="git"
15 echo "Unsupported SCM tool" >&2
19 [ -z "$PATTERN" ] && PATTERN
="*.pot"
21 for lang
in $
(cd po
; echo ?? ??_??
); do
22 for file in $
(cd po
/templates
; echo $PATTERN); do
23 if [ -f po
/templates
/$file -a ! -f "po/$lang/${file%.pot}.po" ]; then
24 msginit
--no-translator -l "$lang" -i "po/templates/$file" -o "po/$lang/${file%.pot}.po"
25 $SCM add
"po/$lang/${file%.pot}.po"