Chameleon

Chameleon Svn Source Tree

Root/branches/ErmaC/Enoch_Modules/package/bin/clean_po_headers.sh

  • Property svn:executable set to *
1#!/bin/bash
2
3if [[ ! -d "po" ]];then
4 echo "There no 'po' directory in the current directory !" >&2
5 exit 1
6fi
7
8for pofile in po/*.po; do
9echo $pofile
10 lang=${pofile##*/}
11 lang=${lang%.*}
12 gsed -i 's/; charset=CHARSET/; charset=UTF-8/g' $pofile
13 gsed -i 's/^\"Project-Id-Version: PACKAGE VERSION/\"Project-Id-Version: Chameleon 2.2/' $pofile
14 gsed -i "s/^\"Language:.*\"/\"Language: $lang\\\n\"/" $pofile
15 gsed -i "s/^\"Language-Team:.*\"/\"Language-Team: $lang <$lang@li.org>\\\n\"/" $pofile
16done
17

Archive Download this file

Revision: 2238