From b8e7831681939bda042c71cb24d05c46ecb2f135 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Dec 2015 23:15:02 -0500 Subject: lib/locale.sh: Don't use substitution macros --- (limited to 'lib') diff --git a/lib/locale.sh b/lib/locale.sh index 3398e58..76d2d9b 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -18,9 +18,7 @@ # along with the ProteanOS Development Kit. If not, see # . -LOCALEDIR='@localedir@' DEFAULT_LOCALE='en_US' -TEXT_DOMAIN='@textdomain@' load_locale() { @@ -63,7 +61,7 @@ get_msg() { local msgid="${1}" - eval "printf '%s' \"\${msg_${TEXT_DOMAIN}_${msgid}}\"" + eval "printf '%s' \"\${msg_${TEXTDOMAIN}_${msgid}}\"" return 0 } @@ -74,7 +72,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