summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}" \