X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gen_locale.sh;h=a57cea5464bd276e2d745c3523f1e0038fcf5431;hb=52142a9d3954cf00d821e8df7b14f276187da655;hp=ed89fdcf8a3ecb4cf6a2e6cfe799103519893868;hpb=276650eae5da9b54f28f59419c5e19278a47a9ef;p=gosa.git diff --git a/gen_locale.sh b/gen_locale.sh index ed89fdcf8..a57cea546 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 @@ -34,7 +34,7 @@ mv contrib/gosa.conf.new contrib/gosa.conf 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