Changeset 1503

Show
Ignore:
Timestamp:
06/20/06 14:58:26 (2 years ago)
Author:
mbonetti
Message:

Better gettext handling through msgmerge

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/dist/l10n.sh

    r1487 r1503  
    66 
    77POS=`find intl -name LC_MESSAGES -type d` 
     8POT=intl/messages.pot 
     9touch $POT 
     10echo "Updating template: $POT" 
     11find . -name \*.php | xargs xgettext -o $POT --no-wrap -j -lPHP -k__ 
     12 
    813POFILE=messages.po 
    914MOFILE=messages.mo 
     15POXFILE=messages.pox 
     16 
    1017for PO in $POS; do 
    11     echo "updating $PO/$POFILE" 
     18    echo "Updating $PO/$POFILE" 
    1219    touch $PO/$POFILE 
    13     find . -name \*.php | xargs xgettext -o $PO/$POFILE --no-wrap -j -lPHP -k__ 
     20    msgmerge -o $PO/$POXFILE $PO/$POFILE $POT 
     21    mv $PO/$POXFILE $PO/$POFILE 
     22    echo "Building $PO/$MOFILE"  
    1423    msgfmt -o $PO/$MOFILE $PO/$POFILE 
     24    echo  
    1525done 
    1626