Prusa-Firmware/lang_upgrade/make_lang_en.sh

13 lines
403 B
Bash
Raw Normal View History

#!/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