|
Lines 59-65
if [ "$AUTOMATIC_TRANSLATIONS_UPDATE" = "yes" ]; then
Link Here
|
| 59 |
if koha-translate --update $lang; then |
59 |
if koha-translate --update $lang; then |
| 60 |
echo "Updated the $lang translations." |
60 |
echo "Updated the $lang translations." |
| 61 |
else |
61 |
else |
| 62 |
cat <<EOF |
62 |
cat <<EOF >&2 |
| 63 |
ERROR: an error was found when updating '$lang' translations. Please manually |
63 |
ERROR: an error was found when updating '$lang' translations. Please manually |
| 64 |
run 'koha-translate --update $lang'. Run man koha-translate for more options. |
64 |
run 'koha-translate --update $lang'. Run man koha-translate for more options. |
| 65 |
EOF |
65 |
EOF |
|
Lines 69-75
else
Link Here
|
| 69 |
# no auto-update, check update needed and warn if needed |
69 |
# no auto-update, check update needed and warn if needed |
| 70 |
if koha-translate --list | grep -v -q -x "en"; then |
70 |
if koha-translate --list | grep -v -q -x "en"; then |
| 71 |
# translations installed, update needed |
71 |
# translations installed, update needed |
| 72 |
cat <<EOF |
72 |
cat <<EOF >&2 |
| 73 |
Warning: template translations are not set to be automatically updated. |
73 |
Warning: template translations are not set to be automatically updated. |
| 74 |
Please manually run 'koha-translate --update lang_code' to update them. |
74 |
Please manually run 'koha-translate --update lang_code' to update them. |
| 75 |
|
75 |
|
| 76 |
- |
|
|