2012-07-31 01:52:06 +02:00
|
|
|
#!/bin/bash
|
|
|
|
echo '-- generated by ./tools/gen_needed_translations.sh'
|
2013-01-23 18:35:43 +01:00
|
|
|
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\\(\"(\\\\\"|[^\"])*\"" {} \;) \
|
2012-07-31 01:52:06 +02:00
|
|
|
| sort | uniq | sed "s/^tr(.\(.*\).$/ \"\1\",/"
|
|
|
|
echo '}'
|