7 AUTOMATIC_TRANSLATIONS_UPDATE="no"
9 . /usr/share/debconf/confmodule
11 # Read configuration variable file if it is present
12 if [ -r /etc/default/$NAME ]; then
16 conf=/etc/mysql/koha-common.cnf
17 if [ ! -e "$conf" ] && [ ! -L "$conf" ]
19 ln -s debian.cnf "$conf"
24 koha-upgrade-schema $(koha-list)
26 if [ "$AUTOMATIC_TRANSLATIONS_UPDATE" = "yes" ]; then
27 for lang in $(koha-translate --list | grep -v -x "en"); do
28 if koha-translate --update $lang; then
29 echo "Updated the $lang translations."
32 ERROR: an error was found when updating '$lang' translations. Please manually
33 run 'koha-translate --update $lang'. Run man koha-translate for more options.
38 # no auto-update, check update needed and warn if needed
39 if koha-translate --list | grep -v -q -x "en"; then
40 # translations installed, update needed
42 Warning: template translations are not set to be automatically updated.
43 Please manually run 'koha-translate --update lang_code' to update them.
45 You can run 'koha-translate --list' to get a list of the installed translations codes.