mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-22 02:04:19 +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 " VALUES( 'en', 'English', 'English' );"
|
||||
for LOCALE in `locale_list`; do
|
||||
echo "INSERT INTO supported_locales ( locale, locale_name_en, locale_name_locale )"
|
||||
cat ${PODIR}/${LOCALE}.values
|
||||
if [ -f ${PODIR}/${LOCALE}.values ] ; then
|
||||
echo "INSERT INTO supported_locales ( locale, locale_name_en, locale_name_locale )"
|
||||
cat ${PODIR}/${LOCALE}.values
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user