Rev 1048 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh## Created 2005/02/08 by Simon Urbanek# list of localizations we want to generate from EnglishLANGUAGES=`cat LANGUAGES`# this is an exception - we actually merge into the english master, tooLANGUAGES="$LANGUAGES English"# remove existing strings (if present)rm -f Localizable.strings# find all sources and run filterNLS on that listfind -X . -name \*.m 2> /dev/null | awk '{print substr($1,3)}' | xargs ./filterNLS# now we have new Localized.strings in the current directoryif [ ! -e Localizable.strings ]; thenecho "*** ERROR: Localizable.strings were NOT generated"exit 1fi# we need to merge that with the available languagesfor LANG in $LANGUAGES; doif [ -e "$LANG.lproj" ]; thenif [ -e "$LANG.lproj/Localizable.strings" ]; thenecho "Updating $LANG ..."./mergeLS Localizable.strings "$LANG.lproj/Localizable.strings"elseecho "-- $LANG has no localizable strings, creating them"cp Localizable.strings "$LANG.lproj/Localizable.strings"fielseecho "** $LANG is in the language list, but there is no lproj dorectory for it!"fidonerm Localizable.stringsecho " Done."