mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Fix translations, there were all broken
This commit is contained in:
@@ -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 '}'
|
||||
|
Reference in New Issue
Block a user