/[smeserver]/builds_bin/update_templates
ViewVC logotype

Diff of /builds_bin/update_templates

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.8 by slords, Sun Jun 7 17:11:51 2009 UTC Revision 1.9 by slords, Mon Jun 22 16:46:16 2009 UTC
# Line 83  done Line 83  done
83  # Apply templates to languages  # Apply templates to languages
84  for lang in $(ls -I templates /etc/pootle/po/sme* | grep '[[:alpha:]]$' | sort -u)  for lang in $(ls -I templates /etc/pootle/po/sme* | grep '[[:alpha:]]$' | sort -u)
85  do  do
     # Create error compendium to assist translators  
     pocompendium -e errors-$lang.po -d /etc/pootle/po/sme*/$lang  
     sed -i '0,/^$/d;/^#~/d' errors-$lang.po  
     sed -i ':a;/^\n*$/{$d;N;ba;}' errors-$lang.po  
     chmod 644 errors-$lang.po  
     diffmv errors-$lang.po /var/www/html/errors/errors-$lang.po  
   
86      # Create compendium to assist translations      # Create compendium to assist translations
87      pocompendium -c /etc/pootle/tmp/compendium-$lang.po -d /etc/pootle/po/*/$lang      pocompendium -c /etc/pootle/tmp/compendium-$lang.po -d /etc/pootle/po/*/$lang
88    
# Line 119  do Line 112  do
112      diffmv $chk $(echo $chk | sed 's@/tmp/@/po/@')      diffmv $chk $(echo $chk | sed 's@/tmp/@/po/@')
113  done  done
114    
115    # Create error compendium to assist translators
116    for lang in $(ls -I templates /etc/pootle/po/sme* | grep '[[:alpha:]]$' | sort -u)
117    do
118        pocompendium -e errors-$lang.po -d /etc/pootle/po/sme*/$lang
119        sed -i '0,/^$/d;/^#~/d' errors-$lang.po
120        sed -i ':a;/^\n*$/{$d;N;ba;}' errors-$lang.po
121        chmod 644 errors-$lang.po
122        diffmv errors-$lang.po /var/www/html/errors/errors-$lang.po
123    done
124    
125  #==========================================================  #==========================================================
126    
127  # Recalculate stats and restart server  # Recalculate stats and restart server


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed