summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/runscript.sh')
-rwxr-xr-xsbin/runscript.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/runscript.sh b/sbin/runscript.sh
index 6e7404c..67626ed 100755
--- a/sbin/runscript.sh
+++ b/sbin/runscript.sh
@@ -39,6 +39,11 @@ else
NETSERVICE=
fi
+# Check if the textdomain is non-default
+search_lang=${LC_ALL:-${LC_MESSAGES:-${LANG}}}
+[[ -f ${TEXTDOMAINDIR}/${search_lang%.*}/LC_MESSAGES/${myservice}.mo ]] \
+ && TEXTDOMAIN=${myservice}
+
# Source configuration files.
# (1) Source /etc/conf.d/${myservice} to get initscript-specific
# configuration (if it exists).