diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-12-06 23:15:02 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-12-06 23:15:02 (EST) |
commit | b8e7831681939bda042c71cb24d05c46ecb2f135 (patch) | |
tree | f02e00508e7457be67cd1ebfc88e8f33d6156efa | |
parent | 535f3a5a7b61c64816864147ad13e87e706d6417 (diff) |
lib/locale.sh: Don't use substitution macros
-rw-r--r-- | lib/locale.sh | 6 |
1 files changed, 2 insertions, 4 deletions
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 # <http://www.gnu.org/licenses/>. -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}" |