a9232ac70a
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@13 b3834d28-1941-0410-a4f8-b48e95affb8f
12 lines
549 B
Bash
Executable file
12 lines
549 B
Bash
Executable file
#!/bin/sh
|
|
xgettext -kT_ngettext:1,2 -kT_ -L PHP -o ../../../locales/messages.po ../../../*.php ../../../services/*.php ../../../templates/*.php
|
|
|
|
if [ -f "../../../locales/$1/LC_MESSAGES/messages.po" ]
|
|
then
|
|
msgmerge -o ../../../locales/$1/LC_MESSAGES/messages.po ../../../locales/$1/LC_MESSAGES/messages.po ../../../locales/messages.po
|
|
|
|
msgfmt --statistics "../../../locales/$1/LC_MESSAGES/messages.po" -o "../../../locales/$1/LC_MESSAGES/messages.mo"
|
|
else
|
|
echo "gettexts.sh LANGUAGE_CODE"
|
|
echo "example: 'gettexts fr_FR' to get text for French"
|
|
fi
|