]> git.koha-community.org Git - koha.git/commit
Bug 10942: Provide a way for package upgrades to update template translations
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 24 Sep 2013 17:45:07 +0000 (14:45 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 24 Apr 2014 12:47:45 +0000 (12:47 +0000)
commit33cc81bbc37046d9a38ff3d4b64f546e5e8f77b8
treefcff3d2005384c979e1f2349e2a1383f7ecef94c
parent45ce7431d42cd470d7f7326d8935333014b1f62c
Bug 10942: Provide a way for package upgrades to update template translations

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>
debian/koha-common.default
debian/koha-common.postinst