Fix translations, there were all broken

This commit is contained in:
Eduardo Bart
2013-01-23 15:35:43 -02:00
parent 1674575dc0
commit 992acd8873
16 changed files with 1182 additions and 586 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
echo '-- generated by ./tools/gen_needed_translations.sh'
echo 'Locales.neededTranslations = {'
cat <(find \( -name "*.lua" -o -name "*.otui" \) -exec grep -oE "tr\\('(\\\\'|[^'])*'" {} \;) \
<(find \( -name "*.lua" -o -name "*.otui" \) -exec grep -oE "tr\\(\"(\\\\\"|[^\"])*\"" {} \;) \
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 '}'