Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build-tools/po_update.sh

    r2283 r2566  
    6868{ 
    6969     tee - 
    70       
     70 
    7171     $XGETTEXT \ 
    7272     - \ 
     
    8484     po_dir=`dirname $1` 
    8585     po_tmp=$po_dir/tmp.po~ 
    86       
     86 
    8787     if [ ! -d $po_dir ]; then 
    8888          mkdir $po_dir 
    8989     fi 
    90       
     90 
    9191     if [ ! -f $po_file ]; then 
    9292          cp $pot_file $po_file 
    9393          perl -pi -e "s|; charset=CHARSET|; charset=UTF-8|sgi;" $po_file $po_file 
    9494     fi 
    95       
     95 
    9696     $MSGMERGE --no-location --no-wrap -o $po_tmp $po_file $pot_file 
    9797     mv $po_tmp $po_file 
     
    108108          -o locales/_pot/main.pot \ 
    109109          -x locales/_pot/date.pot 
    110       
     110 
    111111     echo "DONE" 
    112       
     112 
    113113     # plugins.pot 
    114114     echo "Building plugins PO template..." 
     
    123123          -x locales/_pot/date.pot \ 
    124124          -x locales/_pot/main.pot 
    125       
     125 
    126126     echo "DONE" 
    127       
     127 
    128128     # 
    129129     # Update locales/<lang> if needed 
     
    132132          exit 0; 
    133133     fi 
    134       
     134 
    135135     # Init locale if not present 
    136136     if [ ! -d locales/$PO_LANG ]; then 
    137137          mkdir -p locales/$PO_LANG/help 
    138            
     138 
    139139          # Base help files 
    140140          for i in locales/en/help/*.html; do 
     
    147147          done 
    148148     fi 
    149       
     149 
    150150     # update main.po 
    151151     echo "Updating <$PO_LANG> po files..." 
     
    158158     # Plugin language update 
    159159     # 
    160       
     160 
    161161     if [ ! -d $PO_MODULE ]; then 
    162162          echo "Module $PO_MODULE does not exist" 
     
    164164     fi 
    165165     echo "Module $PO_MODULE language update" 
    166       
    167       
     166 
     167 
    168168     # 
    169169     # Building po template file 
     
    173173     fi 
    174174     echo "Building main PO template..." 
    175      echo '<?php' >$PO_MODULE/__html_tpl_dummy.php  
     175     echo '<?php' >$PO_MODULE/__html_tpl_dummy.php 
    176176     find $PO_MODULE -name '*.html' -exec grep -o '{{tpl:lang [^}]*}}' {} \; | sed 's/{{tpl:lang \(.*\)}}$/__\("\1")/' | sort -u \ 
    177177          >> $PO_MODULE/__html_tpl_dummy.php 
    178      sed -i "" 's/\$/\\\$/g' $PO_MODULE/__html_tpl_dummy.php  
    179       
     178     sed -i "" 's/\$/\\\$/g' $PO_MODULE/__html_tpl_dummy.php 
     179 
    180180     find $PO_MODULE -name '*.php' -print | \ 
    181181          extract_strings \ 
     
    183183          -o $PO_MODULE/locales/_pot/main.pot \ 
    184184          -x locales/_pot/date.pot -x locales/_pot/main.pot -x locales/_pot/public.pot -x locales/_pot/plugins.pot 
    185       
     185 
    186186     rm -f $PO_MODULE/__html_tpl_dummy.php 
    187       
     187 
    188188     echo "DONE" 
    189       
     189 
    190190     # 
    191191     # Update locale/<lang> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map