From 0dfcd1c1fe8c8dd5389a53d6317502543e87c149 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 22 Jul 2017 14:47:50 -0400 Subject: src/locale.sh: Use TEXTDOMAIN --- (limited to 'src') diff --git a/src/locale.sh b/src/locale.sh index 2e36ce5..5381e33 100644 --- a/src/locale.sh +++ b/src/locale.sh @@ -64,7 +64,7 @@ get_msg() { local msgid="${1}" - eval "printf '%s' \"\${msg_${TEXT_DOMAIN}_${msgid}}\"" + eval "printf '%s' \"\${msg_${TEXTDOMAIN}_${msgid}}\"" return 0 } @@ -75,7 +75,7 @@ _try_load_locale() local locale="${2}" local ms= - for ms in "${localedir}/${locale}/LC_MESSAGES/${TEXT_DOMAIN}.ms" \ + for ms in "${localedir}/${locale}/LC_MESSAGES/${TEXTDOMAIN}.ms" \ "${localedir}/${locale}.ms"; do if [ -f "${ms}" ]; then . "${ms}" -- cgit v0.9.1