Changeset 3043 for trunk


Ignore:
Timestamp:
08/10/10 16:01:42 (10 years ago)
Author:
tarmo
Message:

Fixes to i18n pot generation system.

Location:
trunk
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/i18n/utils/updateTranslation.sh

    r3014 r3043  
    1515 
    1616# Extract data from live site 
    17 #cd ../tests 
    18 #./runtests.sh extractTranslations.py 
    19 #if [ -r lemill-generated.pot ]; then 
    20 #  echo "Site processed ok: " $(cat lemill-generated.pot|grep 'msgid'|wc -l) 
    21 #  mv lemill-generated.pot ../i18n 
    22 #  cd ../i18n 
    23 #else 
    24 #  echo "Error processing site!" 
    25 #  exit 2 
    26 #fi 
     17cd ../../.. 
     18bin/zopectl test -s Products.LeMill --all -t Extract 
     19if [ -r lemill-generated.pot ]; then 
     20  echo "Site processed ok: " $(cat lemill-generated.pot|grep 'msgid'|wc -l) 
     21  mv lemill-generated.pot Products/LeMill/i18n/ 
     22  cd Products/LeMill/i18n 
     23else 
     24  echo "Error processing site!" 
     25  exit 2 
     26fi 
    2727 
    2828cd .. 
     
    3232 
    3333# Filter Plone stuff out 
    34 #PRODUCTS_FOLDER=$(pwd) 
    35 #PRODUCTS_FOLDER=${PRODUCTS_FOLDER/\/LeMill\/i18n//} 
    36 #i18ndude filter lemill-generated.pot ${PRODUCTS_FOLDER}PloneTranslations/i18n/plone.pot >lemill-generated2.pot || { echo "Problem filtering generated catalog!"; exit 3; } 
    37 #echo "Skin catalog filtered with Plone: " $(cat lemill-generated2.pot|grep 'msgid'|wc -l) 
    38 #rm lemill-generated.pot 
     34PRODUCTS_FOLDER=$(pwd) 
     35PRODUCTS_FOLDER=${PRODUCTS_FOLDER/\/LeMill\/i18n//} 
     36i18ndude filter lemill-generated.pot ${PRODUCTS_FOLDER}PloneTranslations/i18n/plone.pot >lemill-generated2.pot || { echo "Problem filtering generated catalog!"; exit 3; } 
     37echo "Skin catalog filtered with Plone: " $(cat lemill-generated2.pot|grep 'msgid'|wc -l) 
     38rm lemill-generated.pot 
    3939 
    4040# Merge 
Note: See TracChangeset for help on using the changeset viewer.