6 echo "Generating list of supported languages"
8 OUTFILE
="config/chroot_local-includes/usr/share/tails/greeter/supported_languages"
10 # Add our tier-1 supported languages
11 LANG_CODES
="ar de en es fa fr hi it pt ru tr zh"
13 # Add the languages which have translations in Tails
14 TRANSLATED
="$(find po -name "*.po
" -exec basename {} \; | \
15 sed -e "s
/\.po
//" -e "s
/\
(.
*\
)_.
*/\
1/g
")"
16 LANG_CODES
="${LANG_CODES} ${TRANSLATED}"
18 # Write the list to the output file
19 echo "${LANG_CODES}" |
tr " " "\n" |
sort |
uniq |
tr "\n" " " > "${OUTFILE}"