Bug 10942: (follow-up) make AUTOMATIC_TRANSLATIONS_UPDATE default to yes
authorGalen Charlton <gmc@esilibrary.com>
Wed, 12 Mar 2014 02:07:53 +0000 (02:07 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 24 Apr 2014 12:49:01 +0000 (12:49 +0000)
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 <gmc@esilibrary.com>
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
debian/koha-common.postinst
debian/templates/koha-common.conf

index f56142d..d061403 100644 (file)
@@ -2,8 +2,8 @@
 
 set -e
 
-# Default to "no"
-AUTOMATIC_TRANSLATIONS_UPDATE="no"
+# Default to "yes"
+AUTOMATIC_TRANSLATIONS_UPDATE="yes"
 
 . /usr/share/debconf/confmodule
 
index 3c8a9af..331a893 100644 (file)
@@ -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 <lang_code>
 #
-#AUTOMATIC_TRANSLATIONS_UPDATE="no"
+#AUTOMATIC_TRANSLATIONS_UPDATE="yes"