]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 10 Dec 2018 09:30:25 +0000 (09:30 +0000)
commitdc5677738794d0148dc979d584ea34f6cd49254d
tree25a92b03e3273ba6a353df60511128b501057754
parentec0c6ef4145ff438f1d1a6da6da7616011ae2840
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>
(cherry picked from commit bd81f0418c14af82cdd9f4858c32b18d76a90b49)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
misc/translator/LangInstaller.pm
t/LangInstaller.t