X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=tools%2Fmake-functions;h=4fbb530f45f4f15dd057b760351b9b536e9f6ee9;hp=356d7a6174a1d233e0c88168695ccdd1709d9a99;hb=30986dbf03b2ce231f3a53989d4d81ec7ccb1681;hpb=6ae131ef235c11d9ff7419b9b84be7132bd25fb5 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" }