]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sat, 23 May 2020 07:31:21 +0000 (08:31 +0100)
commit6028c92c7b299b85d871605cd46d5bb97b760f7b
tree24cddc37d5ce7281002e57e01851356721e67b95
parentf87317af7fc5d45d1a826c953b53c7ea821d2447
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>
Koha/I18N.pm