Problems with "Umlaute"

Topics about translating Bygfoot

Moderator: romihaitza

Post Reply
Taram
Posts: 1
Joined: Fri May 04, 2007 12:24 am

Problems with "Umlaute"

Post by Taram »

When I updated my team data I had problems with the "Umlaute"
e.g. Bayern München. So I had to change xml-Data in .bygfoot/definitions/teams/

So I wrote a small usefull shell-script with following content:
#!/bin/sh
# wandelt die Umlaute um /change the "Umlaute"
for i in $@
do
cat $i |
sed -e "1,$ s/é/é/g"|
sed -e "1,$ s/ü/ü/g" |
sed -e "1,$ s/Ãœ/Ü/g" |
sed -e "1,$ s/ä/ä/g" |
sed -e "1,$ s/Ä/Ä/g" |
sed -e "1,$ s/ö/ö/g" |
sed -e "1,$ s/Ö/Ö/g" |
sed -e "1,$ s/ß/ß/g" > $i
done

After saving this shell-script under the name "umlaute". I did on the shell:
$> chmod +x umlaute

Then I used the script in my current home directory:
$> umlaute .bygfoot/definitions/teams/*.xml

I hope this is a useful hint to fix this little problem!
Post Reply