@@ -, +, @@ --- misc/translator/LangInstaller.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/misc/translator/LangInstaller.pm +++ a/misc/translator/LangInstaller.pm @@ -455,9 +455,10 @@ sub install_messages { make_path($modir); system "$self->{msgfmt} -o $mofile $pofile"; - my $tmp_po = sprintf '/tmp/%s-messages.po', $self->{lang}; + my $tmp_po = sprintf '/tmp/%s-messages.po', $self->{lang}; my $po2json_cmd = sprintf '%s %s %s', $self->{po2json}, $js_pofile, $tmp_po; - `$po2json_cmd`; + $po2json_cmd .= q{ 2> >(grep -v -e 'DEP0128' -e 'trace-deprecation' - )}; # Remove deprecation warning + `/usr/bin/bash -c "$po2json_cmd"`; # We need bash instead of sh (sh: 1: Syntax error: redirection unexpected) my $json = read_file($tmp_po); my $js_locale_data = sprintf 'var json_locale_data = {"Koha":%s};', $json; --