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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Wed, 17 Jun 2020 21:37:43 +0000 (23:37 +0200)
commit9ab3521d5f186656b3d2fa85e79a62556de09758
tree63e998e5096ce9f9d5b32efab31b0951de2c7489
parent5f2885cd9809325d57706658605ee01b144cde97
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)

(cherry picked from commit a43eb84800b8e744354b414e7a8220a55934ed68)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/I18N.pm