Koha/misc/translator
Olli-Antti Kivilahti 8aa86cdf2d Bug 21480: misc/translator/translate does not work with perl 5.26
Perl 5.26 (or earlier) introduced a security feature, where implicitly
including the program directory as a Perl library directory no longer
happens (perl -I. ).

This causes translate to fail because it cannot find the *.pm -files in
it's own directory.

This patch adds the familiar mantra
    use lib $FindBin::Bin;
to the relevant scripts.

To test:

1. Install Ubuntu18.04 or something else with Perl 5.26
2. Install Koha (we use the dev-install)
3. cd $KOHA_PATH/misc/translator/
4. perl translate create fi-FI
5. Observe problems with missing modules.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Cannot recreate the issue right now but the changes make sense.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-03 17:33:37 +00:00
..
po Fix translation issues 2018-05-24 14:30:21 -03:00
LangInstaller.pm Bug 18901: [QA Follow-up] Do not translate zzpref either 2017-07-14 12:30:00 -03:00
Makefile merging 2.2 branch with head. Sorry for not making it before, many many commits done here 2005-03-01 13:40:35 +00:00
text-extract.pl Bug 21480: misc/translator/translate does not work with perl 5.26 2018-10-03 17:33:37 +00:00
text-extract2.pl Bug 21480: misc/translator/translate does not work with perl 5.26 2018-10-03 17:33:37 +00:00
tmpl_process3.pl Bug 21480: misc/translator/translate does not work with perl 5.26 2018-10-03 17:33:37 +00:00
TmplTokenizer.pm Bug 16011: $VERSION - Remove the $VERSION init 2016-03-24 17:20:28 +00:00
translate Bug 21480: misc/translator/translate does not work with perl 5.26 2018-10-03 17:33:37 +00:00
VerboseWarnings.pm Bug 16011: $VERSION - Remove the $VERSION init 2016-03-24 17:20:28 +00:00
xgettext.pl Bug 21480: misc/translator/translate does not work with perl 5.26 2018-10-03 17:33:37 +00:00