]> git.koha-community.org Git - koha.git/commit
Bug 21895: Fix translation for package install
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 27 Nov 2018 23:51:45 +0000 (00:51 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 29 Nov 2018 17:57:54 +0000 (17:57 +0000)
commitbd81f0418c14af82cdd9f4858c32b18d76a90b49
treec579685e395c4e032bbbd3472753b39d7309adf4
parent1277351f1969ce32f06c6e1d5fc6bdc471dd5ac4
Bug 21895: Fix translation for package install

The string extraction process was not taking into account the fact that
standard/package install have a completely different directory structure
than the dev install

This patch tries to keep the exact same behaviour for dev installs,
while making it work for standard install by using opachtdocs,
intrahtdocs, opacdir and intranetdir from $KOHA_CONF

Test plan:
1. Follow test plan in
https://gitlab.com/koha-community/Koha/commit/d708255c7a4d981c7c7bdd0644a75202ec43b297
2. Do a standard install and repeat step 1 on this new install
3. If you know how to build the Debian package, build it, install it and
verify that koha-translate works as expected
4. prove t/LangInstaller.t

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/translator/LangInstaller.pm
t/LangInstaller.t