Prusa-Firmware/lang_upgrade/make_lang_en.sh
Robert Pelnar 4e14e6cdbb New ML support - dictionary generators (scripts) and dictionaries:
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)
2018-05-23 14:17:23 +02:00

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