summaryrefslogtreecommitdiffstats
path: root/lib/locale.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-15 19:01:14 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-15 19:01:14 (EDT)
commitda9d5d7a94b3c7364f647f00cd7c6cc3b779a1e3 (patch)
tree3b50f2fe39d9460d3abbaa5f5f00b7fab4548693 /lib/locale.sh
parent6829e042baf0bcd4f86a472daa86839c60fb272c (diff)
load_locale(): Support in-place execution
Diffstat (limited to 'lib/locale.sh')
-rw-r--r--lib/locale.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/locale.sh b/lib/locale.sh
index 7189e0c..c3f4c9e 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -39,7 +39,11 @@ load_locale()
fi
fi
- localedir="${LOCALEDIR}"
+ if ${in_place}; then
+ localedir="${srcdir}/locale"
+ else
+ localedir="${LOCALEDIR}"
+ fi
# Try to load the locale.
if ! _try_load_locale "${localedir}" \