You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tibia-client/tools/gen_needed_translations.sh

8 lines
364 B

#!/bin/bash
echo '-- generated by ./tools/gen_needed_translations.sh'
echo 'neededTranslations = {'
cat <(find -L \( -name "*.lua" -o -name "*.otui" \) -exec grep -oE "tr\\('(\\\\'|[^'])*'" {} \;) \
<(find -L \( -name "*.lua" -o -name "*.otui" \) -exec grep -oE "tr\\(\"(\\\\\"|[^\"])*\"" {} \;) \
| sort | uniq | sed "s/^tr(.\(.*\).$/ \"\1\",/"
echo '}'