4e14e6cdbb
make_lang_en.sh - english dictionary generator script make_lang - english dictionary generator script (new) lang_en.txt - english dictionary (format changed) lang_en_cz.txt - czech dictionary (new file)
13 lines
403 B
Bash
13 lines
403 B
Bash
#!/bin/sh
|
|
# make_lang_en.sh - create english dictionary from msgs
|
|
echo "make_lang_en.sh"
|
|
cat msgs_en_used_once.txt msgs_en_used_more.txt |\
|
|
sed "s/[ ]*$//g" |\
|
|
sed "s/\bCUSTOM_MENDEL_NAME\b/\"Prusa i3 MK3\"/g" |\
|
|
sed "s/\" \"//g" |\
|
|
sed 's/\\"/\\x22/g' |\
|
|
sed 's/\\xF8/\\xf8/g' |\
|
|
sort -k4 | sed "s/^/#/;s/ \"/\n\"/;s/\"$/\"\n/" > lang_en.txt
|
|
echo "finished... press any key"
|
|
read
|
|
exit |