mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
rebuild-translations.sh: do not create incorrect SQL in supported_locales.sql when $lang.values file is missing (fixing Issue #40 part a)
This commit is contained in:
parent
a4896b085a
commit
3a9d8db575
@ -52,8 +52,10 @@ build_supported_locales() {
|
|||||||
echo "INSERT INTO supported_locales ( locale, locale_name_en, locale_name_locale )"
|
echo "INSERT INTO supported_locales ( locale, locale_name_en, locale_name_locale )"
|
||||||
echo " VALUES( 'en', 'English', 'English' );"
|
echo " VALUES( 'en', 'English', 'English' );"
|
||||||
for LOCALE in `locale_list`; do
|
for LOCALE in `locale_list`; do
|
||||||
|
if [ -f ${PODIR}/${LOCALE}.values ] ; then
|
||||||
echo "INSERT INTO supported_locales ( locale, locale_name_en, locale_name_locale )"
|
echo "INSERT INTO supported_locales ( locale, locale_name_en, locale_name_locale )"
|
||||||
cat ${PODIR}/${LOCALE}.values
|
cat ${PODIR}/${LOCALE}.values
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user