From: Galen Charlton Date: Wed, 12 Mar 2014 02:07:53 +0000 (+0000) Subject: Bug 10942: (follow-up) make AUTOMATIC_TRANSLATIONS_UPDATE default to yes X-Git-Tag: v3.16.00-beta~302 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=acd8a10251da42d44c262cb63ee2b585352a860a;p=koha_fer Bug 10942: (follow-up) make AUTOMATIC_TRANSLATIONS_UPDATE default to yes This patch makes AUTOMATIC_TRANSLATIONS_UPDATE default to yes, meaning that package upgrades will update the translations by default. This seems definitely sensible for new installations, but as there are some older installations that may be in the habit directly editing generated translated templates, it's less clear whether this is a good idea for upgrades. This patch is intentionally separate, and can be ignored if the consensus swings towards having AUTOMATIC_TRANSLATIONS_UPDATE be off even for new installations or if somebody counter-patches with adding debconf support. To test: - As with the previous patches in the series, except that the translations would be automatically updated upon installing the new package. Signed-off-by: Galen Charlton Signed-off-by: Robin Sheat Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Galen Charlton --- diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst index f56142d2e0..d061403129 100644 --- a/debian/koha-common.postinst +++ b/debian/koha-common.postinst @@ -2,8 +2,8 @@ set -e -# Default to "no" -AUTOMATIC_TRANSLATIONS_UPDATE="no" +# Default to "yes" +AUTOMATIC_TRANSLATIONS_UPDATE="yes" . /usr/share/debconf/confmodule diff --git a/debian/templates/koha-common.conf b/debian/templates/koha-common.conf index 3c8a9af81d..331a893704 100644 --- a/debian/templates/koha-common.conf +++ b/debian/templates/koha-common.conf @@ -9,9 +9,9 @@ # # This variable controls whether template translations should # be updated automatically on koha-common package upgrades. -# Options: 'yes' -# 'no' (default) +# Options: 'yes' (default) +# 'no' # Note: if you choose 'no' then you will have to issue # $ koha-translate --update # -#AUTOMATIC_TRANSLATIONS_UPDATE="no" +#AUTOMATIC_TRANSLATIONS_UPDATE="yes"