X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gen_locale.sh;h=0869511e078b10aad7b3ff09ba34a910790de429;hb=f7f36fa787788739531d46d6636abdb7e9e224d7;hp=1417855a2c42430bd233c774ea32474cc27ba41c;hpb=bc15ea4e77df52ea5b8d781b81047da6974ba331;p=gosa.git diff --git a/gen_locale.sh b/gen_locale.sh index 1417855a2..0869511e0 100755 --- a/gen_locale.sh +++ b/gen_locale.sh @@ -22,7 +22,7 @@ for template in $(find -name '*.tpl'); 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 @@ -84,7 +84,7 @@ if [ $error -eq 0 ]; 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 @@ -96,9 +96,9 @@ cat << EOF --------------------------------------------------------------------- -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