diff --git a/gen_locale.sh b/gen_locale.sh
index 1417855a2c42430bd233c774ea32474cc27ba41c..a57cea5464bd276e2d745c3523f1e0038fcf5431 100755 (executable)
--- a/gen_locale.sh
+++ b/gen_locale.sh
done
for class in $(find -name 'class_*.inc'); do
done
for class in $(find -name 'class_*.inc'); do
- echo -en "\rConverting .tpl files: $(basename $template) \r"
+ echo -en "\rConverting class_*.inc files: $(basename $template) \r"
sed -e 's/\($pl[DH][^=]*\)= *"\([^"]*\)";$/\1= _("\2");/g' $class > $class.new
mv $class.new $class
done
sed -e 's/\($pl[DH][^=]*\)= *"\([^"]*\)";$/\1= _("\2");/g' $class > $class.new
mv $class.new $class
done
echo "Extracting languages..."
rm locale/messages.po
echo "Extracting languages..."
rm locale/messages.po
-(echo contrib/gosa.conf; find . -name '*.[ctpi][ophn][nlpc]') | xgettext -f - --omit-header --keyword=must -d Domain -L PHP -n -o locale/messages.po
+(echo contrib/gosa.conf; find . -name '*.[ctpi][ophn][nlpc]') | xgettext -f - --keyword=must -d Domain -L PHP -n -o locale/messages.po
echo "Merging po files with existing ones:"
error=0
echo "Merging po files with existing ones:"
error=0
read -p "Do you want to erase the message.po.orig files? (y/n)" -n1 ans
if [ "$ans" == "y" -o "$ans" == "Y" ]; then
read -p "Do you want to erase the message.po.orig files? (y/n)" -n1 ans
if [ "$ans" == "y" -o "$ans" == "Y" ]; then
- find $ORIG -type f -name 'messages.po.orig' -exec rm -f {} \;
+ find $ORIG/ -type f -name 'messages.po.orig' -exec rm -f {} \;
fi
else
fi
else
---------------------------------------------------------------------
---------------------------------------------------------------------
-Now edit all files that have been replaced above (i.e. using kbabel)
-and mail the changes to gosa@oss.gonicus.de to be included in the
-next release.
+Now edit all files that have been replaced above (i.e. using kbabel
+or gtranslator) and mail the changes to gosa@oss.gonicus.de to be
+included in the next release.
To see the changes you've made in GOsa, run "msgfmt messages.po" on
your freshly edited files and restart your apache after that. Set
To see the changes you've made in GOsa, run "msgfmt messages.po" on
your freshly edited files and restart your apache after that. Set