X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=tools%2Fmake-functions;h=4fbb530f45f4f15dd057b760351b9b536e9f6ee9;hb=afdf1483887e7c31567ed4469b3b9922d213e295;hp=356d7a6174a1d233e0c88168695ccdd1709d9a99;hpb=1bbc591d4dcce94f85bc7f1de7d49f4a42d828b6;p=ipfire-2.x.git diff --git a/tools/make-functions b/tools/make-functions index 356d7a6174..4fbb530f45 100644 --- a/tools/make-functions +++ b/tools/make-functions @@ -738,4 +738,19 @@ update_langs() { $BASEDIR/tools/check_strings.pl it > $BASEDIR/doc/language_issues.it $BASEDIR/tools/check_langs.sh > $BASEDIR/doc/language_missings beautify message DONE + + echo -ne "Updating language lists..." + update_language_list ${BASEDIR}/src/installer/po + update_language_list ${BASEDIR}/src/setup/po + beautify message DONE +} + +update_language_list() { + local path="${1}" + + local lang + for lang in ${path}/*.po; do + lang="$(basename "${lang}")" + echo "${lang%*.po}" + done | sort -u > "${path}/LINGUAS" }