Make the locale directory configurable
commita7865ef5aa0309976b5dd2642210632babe106d9
authorLukas Fleischer <lfleischer@archlinux.org>
Sun, 22 Jul 2018 08:41:57 +0000 (22 10:41 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Mon, 6 Aug 2018 04:03:52 +0000 (6 06:03 +0200)
tree457e0841021b4a8ca129de02674f86de1bfc50af
parentc8d99bac8ef96ac94bccdf3c754e7d43b3f1703c
Make the locale directory configurable

Add a new configuration option to specify the locale directory to use.
This allows the Python scripts to find the translations, even when not
being run from the source code checkout. At the same time, multiple
parallel aurweb setups can still use different sets of translations.

Fixes FS#59278.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
aurweb/l10n.py
conf/config.defaults
web/lib/translator.inc.php