Browse Source

Utils: add small script to select language

remotes/origin/translate_notes
crep 14 years ago
committed by Alexandre Dupas
parent
commit
d2894d4084
  1. 17
      utils/language.sh

17
utils/language.sh

@ -0,0 +1,17 @@
#!/bin/sh
echo "Choose langage: 1 (english), 2 (french), 3 (spanish)"
for song in songs/*/*.sg; do
echo "Apply language to $song ?"
read answer
case "$answer" in
1)
sed -i '1i\\\\selectlanguage{english}' $song
;;
2)
sed -i '1i\\\\selectlanguage{french}' $song
;;
3)
sed -i '1i\\\\selectlanguage{spanish}' $song
;;
esac
done;
Loading…
Cancel
Save