]> git.koha-community.org Git - koha.git/commit
Bug 25517: Look in all possible places for MO files
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 22 May 2020 14:45:02 +0000 (16:45 +0200)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Fri, 12 Jun 2020 01:23:06 +0000 (01:23 +0000)
commita43eb84800b8e744354b414e7a8220a55934ed68
treeec34b8acfc761acb9b496f8f7c74b09774706a5c
parent98d895e53d8315a2e921ceb51b43ac42a58c8d51
Bug 25517: Look in all possible places for MO files

On a 'dev' install, MO files will be installed in
<intranetdir>/misc/translator/po
On 'standard' and 'single' installs, they will be installed in
<intranetdir>/../../misc/translator/po

This patch makes Koha::I18N try to use the "dev" directory first, and
fallback to the "standard" directory.
If none of these directories exist, it dies.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 6028c92c7b299b85d871605cd46d5bb97b760f7b)
Koha/I18N.pm