[Koha-bugs] [Bug 10942] Provide a way for package upgrades to update template translations

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 13 00:16:39 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10942

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #26138|0                           |1
        is obsolete|                            |

--- Comment #29 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 26223
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26223&action=edit
Bug 10942 - debconfing the update option

This causes a question to be asked at installation time as to whether
translations should be updated or not. The answer is written to the
config file, and stored in debconf. Effort is taken to ensure that if
the admin changes the config file, the update will be picked up and
reflected in debconf (i.e. that the admin's decision is always the
correct one.)

Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
Fixed two typos that made it fail and it worked like a charm.

Tested like this:

- Install the package
=> no errors, the file is created, defaults to 'yes'
- Install a language (koha-translate --install es-ES)
- Re-install the package (simulating an upgrade)
=> es-ES gets updated
- Set preference to 'no'
- Re-install
=> es-ES doesn't get updated, the warning is printed correctly
- Installed a second language (koha-translate --install pt-BR)
- did all the tests again
=> Success

Note: on master there are obvious template translation warnings.
A copy of the generated package can be grabbed from:
http://es.koha-community.org/koha-common_3.15+20140312172225.af7c0a23_all.deb

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list