diff options
author | P. 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) |
commit | da9d5d7a94b3c7364f647f00cd7c6cc3b779a1e3 (patch) | |
tree | 3b50f2fe39d9460d3abbaa5f5f00b7fab4548693 | |
parent | 6829e042baf0bcd4f86a472daa86839c60fb272c (diff) |
load_locale(): Support in-place execution
-rw-r--r-- | lib/locale.sh | 6 |
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}" \ |