Allow extension gettext mo files to live in the I18N resource dir
authorMathieu Lutfy <mathieu@symbiotic.coop>
Wed, 25 Jan 2023 20:42:26 +0000 (15:42 -0500)
committerMathieu Lutfy <mathieu@bidon.ca>
Wed, 25 Jan 2023 20:42:29 +0000 (15:42 -0500)
commitcb305aeffe7243ac143a451f6b6b43c0bf1d83e3
treea74830181021d9c8521a392ed96c050b958e7835
parent4502008c8e41b8b0935e00ebed0a0748e4095ced
Allow extension gettext mo files to live in the I18N resource dir

CiviCRM core already supports having the civicrm.mo files in a custom
directory, defined by the CIVICRM_L10N_BASEDIR constant. With this patch,
it will also be possible to have the 'mo' files from extensions in that
directory.

It will be assumed that if an extension is called "foo" then the mo file
will be foo.mo and in the same directory as civicrm.mo.
CRM/Core/I18n.php