Browse Source
This patch adds a new config variable AUTOMATIC_TRANSLATIONS_UPDATE at /etc/default/koha-common that is used to control whether the upgrade process should trigger a $ koha-translate --update <lang_code> command for each installed template translation language. To test: - Have a koha-common setup with some languages installed (e.g. koha-translate --install es-ES) - Apply the patch and build a package for it. - Install it. - A new AUTOMATIC_TRANSLATIONS_UPDATE config variable should be in place at /etc/default/koha-common - Set AUTOMATIC_TRANSLATIONS_UPDATE to 'yes' - Re-install the package to trigger the post-install script - Verify that translations get updated. Edit: added a warning message for the case AUTOMATIC_TRANSLATIONS_UPDATE=no and there are translations installed (so they need to get updated). Sponsored-by: Universidad Nacional de Cordoba Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Works as advertised, default behaviour doesn't change. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Robin Sheat <robin@catalyst.net.nz> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>3.16.x
2 changed files with 46 additions and 0 deletions
@ -1,3 +1,16 @@ |
|||
## General koha-common default options |
|||
|
|||
PERL5LIB="/usr/share/koha/lib" |
|||
|
|||
## Automatic template translation update |
|||
# |
|||
# This variable controls whether template translations should |
|||
# be updated automatically on koha-common package upgrades. |
|||
# Options: 'yes' |
|||
# 'no' (default) |
|||
# Note: if you choose 'no' then you will have to issue |
|||
# $ koha-translate --update <lang_code> |
|||
# |
|||
#AUTOMATIC_TRANSLATIONS_UPDATE="no" |
|||
|
|||
## End of general koha-common default options |
|||
|
Loading…
Reference in new issue