Line 43: |
Line 43: |
| this needs work, when creating the first po files | | this needs work, when creating the first po files |
| :/n spaces needs to be replaced, | | :/n spaces needs to be replaced, |
− | :br shouldn't be used | + | :br just shouldn't be used, edit the original en lexicon |
| | | |
| ====newpo==== | | ====newpo==== |
Line 73: |
Line 73: |
| perl -pi -e 's/P\>/p\>/g' $1 | | perl -pi -e 's/P\>/p\>/g' $1 |
| perl -pi -e 's/A\>/a\>/g' $1 | | perl -pi -e 's/A\>/a\>/g' $1 |
− | perl -pi -e 's/\<(b r|B R)\>/breeak/g' $1 #remove space
| |
| | | |
| #echo "Create $1.po" | | #echo "Create $1.po" |
Line 82: |
Line 81: |
| perl -pi -e 's/ENDCDATA/\]\]>/g' $1.po | | perl -pi -e 's/ENDCDATA/\]\]>/g' $1.po |
| perl -pi -e 's/AMP/\&/g' $1.po | | perl -pi -e 's/AMP/\&/g' $1.po |
− | perl -pi -e 's/breeak/\<b r\>/g' $1.po #remove space
| |
| | | |
| mv $1.bak $1 | | mv $1.bak $1 |
Line 133: |
Line 131: |
| #this is added at line 367 xml2po, it needs to be removed or better not added | | #this is added at line 367 xml2po, it needs to be removed or better not added |
| #perl -pi -e 's/\<\?xml version="1.0" encoding="utf-8"\?\>//' $1.xml | | #perl -pi -e 's/\<\?xml version="1.0" encoding="utf-8"\?\>//' $1.xml |
| + | |
| + | #remove first line |
| perl -i.old -ne 'print unless 1 .. 1' $1.xml | | perl -i.old -ne 'print unless 1 .. 1' $1.xml |
| | | |