[Koha-bugs] [Bug 15395] Internationalization: plural forms, context, and more

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 24 17:50:59 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15395

--- Comment #104 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Julian Maurice from comment #92)
> Extraction of strings from templates is a bit complicated and use
> Template::Parser and PPI. Template is compiled into Perl code and then
> analyzed by PPI. It is slow, but should be correct even with complex
> constructions.

Indeed, it is super slow compared. I would consider it acceptable compared to
the enhancement it brings.

(master) % time perl translate update fr-FR
perl translate update fr-FR  10.02s user 5.16s system 84% cpu 17.868 total
(master) % time perl translate install fr-FR
perl translate install fr-FR  12.88s user 3.05s system 79% cpu 19.988 total

(bug_21156) % time perl translate install fr-FR
. done.
perl translate update fr-FR  102.00s user 11.62s system 97% cpu 1:56.00 total
(bug_21156) % time perl translate install fr-FR
perl translate install fr-FR  12.49s user 2.56s system 79% cpu 18.940 total

BTW do you know what is the ". done." outputted by install?

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


More information about the Koha-bugs mailing list